| DynamicCharacterControllerGravity Property |
Gets or sets the gravity.
Namespace: DigitalRune.Physics.SpecializedAssembly: DigitalRune.Physics.Specialized (in DigitalRune.Physics.Specialized.dll) Version: 1.10.0.0 (1.10.0.0)
Syntax public float Gravity { get; set; }
Public Property Gravity As Single
Get
Set
public:
property float Gravity {
float get ();
void set (float value);
}
member Gravity : float32 with get, set
Property Value
Type:
SingleThe gravity.The default is 9.81.
Remarks
The gravity is always acting in -y direction. This value is the magnitude of the gravity
(which is an acceleration). If the gravity is 0, then the character is free-flying.
See Also