Struct PhysicsMaterial
A material for physics properties.
struct PhysicsMaterial
;
Provides a means of modifying the collision properties of a PhysicsBody
.
Properties
Name | Type | Description |
---|---|---|
absorbent [get, set]
|
bool | |
bounce [get, set]
|
double | The body's bounciness. Values range from 0 (no bounce) to 1 (full bounciness).
|
friction [get, set]
|
double | The body's friction. Values range from 0 (frictionless) to 1 (maximum friction).
|
rough [get, set]
|
bool |
Methods
Name | Description |
---|---|
getBounce
|
|
getFriction
|
|
isAbsorbent
|
|
isRough
|
|
setAbsorbent
|
|
setBounce
|
|
setFriction
|
|
setRough
|