Struct PhysicsMaterial

A material for physics properties.

struct PhysicsMaterial ;

Provides a means of modifying the collision properties of a PhysicsBody.

Properties

NameTypeDescription
absorbent[get, set] bool
bounce[get, set] doubleThe body's bounciness. Values range from 0 (no bounce) to 1 (full bounciness).
friction[get, set] doubleThe body's friction. Values range from 0 (frictionless) to 1 (maximum friction).
rough[get, set] bool

Methods

NameDescription
getBounce
getFriction
isAbsorbent
isRough
setAbsorbent
setBounce
setFriction
setRough