Collider:getGravityScale

Edit

Returns 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.

scale = Collider:getGravityScale()

Arguments

None

Returns

NameTypeDescription
scalenumber The gravity scale.

See also