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:
Motors must be defined through
pXcon_set6djoint
. The speed or position is applied to all defined motors.
Alternatively to motors, a force or torque can be directly applied to joint entities.
Example:
See
pXcon_set6djoint
See also:
Constraints
,
pXcon_add
,
pXcon_set6djoint
,
pXcon_setparams1
,
pXcon_setparams2
,
pXcon_setwheel