Function setPhysicsShapeMaterial
-
setPhysicsShapeMaterial(
world: PhysicsWorld,
shape: PhysicsShape,
friction: number,
restitution: number,
staticFriction?: number,
): voidParameters
- world: PhysicsWorld
The physics world.
- shape: PhysicsShape
The collision shape.
- friction: number
Dynamic friction coefficient.
- restitution: number
Bounciness in
[0, 1]. - staticFriction: number = friction
Static friction coefficient. Defaults to
friction.
Returns void
- world: PhysicsWorld
Sets a shape's surface material properties.