Collider:getFriction

Edit

Returns 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

NameTypeDescription
frictionnumber The friction of the Collider.

See also