7 [AddComponentMenu(
"Liberi/Gravity Scalar")]
8 [RequireComponent(typeof(Rigidbody))]
9 [Script(ScriptRole.Logic)]
19 if (rigidbody.isKinematic)
22 rigidbody.AddForce(Physics.gravity * (GravityScale - 1), ForceMode.Acceleration);
float GravityScale
The scale by which to multiply by the scene gravity for this object.
Scales the effect of gravity on this object.