Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


gravityScale

Scales the world gravity that is applied to this body. Setting the gravity scale to zero stops any gravity being applied. Likewise, a negative value inverts gravity. See PhysicsWorld.gravity.
Read time 1 minuteLast updated 9 days ago

Definition

public float gravityScale { get; set; }