PhysicsMaterial

PhysicsMaterial

Base class for physics materials, used in colliders.

Constructor

new PhysicsMaterial(settingsopt)

Parameters:
Name Type Attributes Description
settings Object <optional>
Properties
Name Type Attributes Default Description
friction number <optional>
0.3
restitution number <optional>
0

Members

friction :number

The friction coefficient. Multiplication is used to combine two friction values.

restitution :number

The "bounciness" of the collider.