Creates a composite with a Newton's Cradle setup of bodies and constraints.
name | type | description |
---|---|---|
x | number |
The horizontal position of the start of the cradle. |
y | number |
The vertical position of the start of the cradle. |
number | number |
The number of balls in the cradle. |
size | number |
The radius of each ball in the cradle. |
length | number |
The length of the 'string' the balls hang from. |
A Newton's cradle composite.