Collider:setFriction
EditSets the friction of the Collider. By default, the friction of two Colliders is combined (multiplied) when they collide to generate a friction force. The initial friction is 0.
Collider:setFriction(friction)
Arguments
Name | Type | Description |
friction | number | The new friction. |
Returns
Nothing
See also
Collider:getRestitution
Collider:setRestitution
World:collide
Collider:getFriction
Collider