Collider:setGravityScale

Edit

Sets the gravity scale of the Collider. This is multiplied with the global gravity from the World, so 1.0 is regular gravity, 0.0 will ignore gravity, etc.

Collider:setGravityScale(scale)

Arguments

NameTypeDescription
scalenumber The gravity scale.

Returns

Nothing

See also