Class: PhysicsMaterial

PhysicsMaterial

PhysicsMaterial represents the physical "material" a RigidBody is made of, defining friction and restitution ("bounciness").


new PhysicsMaterial(friction, restitution)

Parameters:
Name Type Description
friction

Defines how hard it is to move an object resting on this material.

restitution

Defines how much an object that hits the material bounces.

Author:
  • derschmale <http://www.derschmale.com>

Members


friction

Defines how hard it is to move an object resting on this material.


restitution

The "bounciness" of this material.