Tao.Ode SDK Documentation

Ode.dGeomSetOffsetWorldPosition Method 

Set the offset position of a geom from its body. Sets the geom's positional offset to move it to the new world coordinates. After this call, the geom will be at the world position passed in, and the offset will be the difference from the current body position. The geom must be attached to a body. If the geom did not have an offset, it is automatically created.

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

Parameters

geom
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