physics_material
Physics material which represents a set of physical surface properties.
Attributes
Attribute | Type | Default | Description |
---|---|---|---|
staticFriction | float | 0.5 | The friction coefficient applied between this surface and another surface if they are not moving lateral to each other. Usually a value from 0 to 1. A value of zero feels like ice, a value of 1 will make it very hard to get the object moving. Resulting static friction of a physics body colliding with another is determined by the average of both bodies' static friction coefficient. |
dynamicFriction | float | 0.5 | The friction coefficient applied between this surface and another surface if they are moving relative to each other. Usually a value from 0 to 1. A value of zero feels like ice, a value of 1 will make it very hard to get the object moving. If set to greater than staticFriction, the effective value of staticFriction will be increased to match. Resulting dynamic friction of a physics body colliding with another is determined by the average of both bodies' dynamic friction coefficient. |
restitution | float | 0 | Restitution coefficient, or bounciness of surface. A coefficient of 0 indicates as little bounce as possible, higher values up to 1.0 result in more bounce. Should be in the range [0,1]. Resulting bounciness of a physics body colliding with another is determined by the average of both bodies' restitution. |
contactVelocity | vec3 | [ 0, 0, 0 ] | The velocity applied to the contact between this physics body and another body. Only applies if modifyContact is true. |
modifyContact | bool | false | Whether to modify the contact when this physics body collides with another body. |
isTrigger | bool | false | Whether to consider the geometry associated to this physics material as a trigger or not. |