Collider:getFriction

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
frictionnumberThe friction of the Collider.

See also