Tao.Ode SDK Documentation

Ode.dWorldSetGravity Method 

Set the world's global gravity vector. The units are m/s/s (meters/second/second), so Earth's gravity vector would be (0,0,-9.81), assuming that +z is up. The default is no gravity, i.e. (0,0,0).

[Visual Basic]
Public Shared Sub dWorldSetGravity( _
   ByVal world As IntPtr, _
   ByVal x As Single, _
   ByVal y As Single, _
   ByVal z As Single _
)
[C#]
public static void dWorldSetGravity(
   IntPtr world,
   float x,
   float y,
   float z
);

Parameters

world
the world to set
x
x component of the gravity vector
y
y component of the gravity vector
z
z component of the gravity vector

See Also

Ode Class | Tao.Ode Namespace