Tao.Ode SDK Documentation

Ode.dBodySetRotation Method (IntPtr, dMatrix3)

Set the rotation of the body. After setting a group of bodies, the outcome of the simulation is undefined if the new configuration is inconsistent with the joints/constraints that are present.

[Visual Basic]
Overloads Public Shared Sub dBodySetRotation( _
   ByVal body As IntPtr, _
   ByVal R As dMatrix3 _
)
[C#]
public static void dBodySetRotation(
   IntPtr body,
   dMatrix3 R
);

Parameters

body
the body to set
R
A dMatrix3 containing the new rotation matrix

Remarks

For some reason the dMatrix3 does not marshall correctly, so this function maintains compatibility with the ODE api by converting the supplied dMatrix3 to and array and passing that to ODE.

See Also

Ode Class | Tao.Ode Namespace | Ode.dBodySetRotation Overload List