pXcon_setmotor (ENTITY* entity, VECTOR* vecParam, var mode)

Applies a rotation speed, linear velocity, or target position to a motorized joint (PH_6DJOINT). A8.12

Parameters:

entity Registered joint entity (PH_6DJOINT).
vecParam Rotation speed, velocity, or position.
mode 0 - rotation speed for an angular motor.
1 - velocity for a linear motor.
2 - target position for a positional motor.

Speed:

Fast

Remarks:

Example:

See pXcon_set6djoint

See also:

Constraints, pXcon_add, pXcon_set6djoint, pXcon_setparams1, pXcon_setparams2, pXcon_setwheel