Collider:getFriction
EditReturns 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.
friction = Collider:getFriction()
Arguments
None
Returns
Name | Type | Description |
friction | number | The friction of the Collider. |
See also
Collider:getRestitution
Collider:setRestitution
World:collide
Collider:setFriction
Collider