Collider:setFriction

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
frictionnumberThe new friction.

Returns

Nothing

See also