Tao.Ode SDK Documentation

Ode.dGeomGetPosition Method 

Return the geom's position vector. In native ODE, the returned values are pointers to internal data structures, so the vectors are valid until any changes are made to the geom. If the geom is attached to a body, the body's position vector will be returned, i.e. the result will be identical to calling dBodyGetPosition dGeomGetQuaternion copies the geom's quaternion into the space provided. If the geom is attached to a body, the body's quaternion will be returned, i.e. the resulting quaternion will be the same as the result of calling dBodyGetQuaternion. Calling this function on a non-placeable geom results in a runtime error in the debug build of ODE.

[Visual Basic]
Public Shared Function dGeomGetPosition( _
   ByVal geom As IntPtr _
) As dVector3
[C#]
public static dVector3 dGeomGetPosition(
   IntPtr geom
);

Parameters

geom
the geom to query

Return Value

the geom's position vector

See Also

Ode Class | Tao.Ode Namespace