Collider:setFriction

Edit

Sets 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

NameTypeDescription
frictionnumber The new friction.

Returns

Nothing

See also