Specifies the density of this body.
The body's mass is computed using the formula: mass = density*volume.
freezeRotation
freezeRotation:boolean
If true, this body cannot rotate, and should always stay upright (rotation angle = 0).
friction
friction:number
Specifies the friction factor of this body, when it slides along another
body.
Setting friction to 0 creates a frictionless slide, setting it to 1
creates a strong friction. You can also use values larger than 1.
restitution
restitution:number
Specifies the bounciness factor of the object.
A value of zero means that the object does not bounce when it collides
with another object (for example, a steel bar). A factor
of 1 represents a perfect bounce with no loss of energy (for example,
a superball). You can use values larger than 1.
Defines how the attached entity behaves under physics simulation.