Tao.Ode SDK Documentation

Ode.dJointSetAMotorAxis Method 

Set the AMotor axes. The anum argument selects the axis to change (0,1 or 2). Each axis can have one of three ``relative orientation'' modes, selected by rel: * 0: The axis is anchored to the global frame. * 1: The axis is anchored to the first body. * 2: The axis is anchored to the second body. The axis vector (x,y,z) is always specified in global coordinates regardless of the setting of rel. For dAMotorEuler mode: * Only axes 0 and 2 need to be set. Axis 1 will be determined automatically at each time step. * Axes 0 and 2 must be perpendicular to each other. * Axis 0 must be anchored to the first body, axis 2 must be anchored to the second body.

[Visual Basic]
Public Shared Sub dJointSetAMotorAxis( _
   ByVal joint As IntPtr, _
   ByVal anum As Integer, _
   ByVal rel As Integer, _
   ByVal x As Single, _
   ByVal y As Single, _
   ByVal z As Single _
)
[C#]
public static void dJointSetAMotorAxis(
   IntPtr joint,
   int anum,
   int rel,
   float x,
   float y,
   float z
);

Parameters

joint
A dJointID
anum
An int
rel
An int
x
A dReal
y
A dReal
z
A dReal

See Also

Ode Class | Tao.Ode Namespace