Tao.Ode SDK Documentation

Ode.dGeomSetPosition Method 

Set the position vector of a placeable geom. This function is analogous to dBodySetPosition. If the geom is attached to a body, the body's position will also be changed. Calling this function on a non-placeable geom results in a runtime error in the debug build of ODE.

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

Parameters

geom
dGeomID of the geom to set
x
the new X coordinate
y
the new Y coordinate
z
the new Z coordinate

See Also

Ode Class | Tao.Ode Namespace