pXcon_getposition (ENTITY* entity, VECTOR* vecOut );

Retrieves information of the specified constraint and stores it in the vecOut vector.

Parameters:

entity joint entity pointer
vecOut

vector returns for a
Hinge Joint:
  z
- Current angle in degrees A8.30
Wheel:
  x - Steer angle in degrees
  y - Roll angle in degrees
  z - Suspension compression in percent (0 = full extended, 100 = full compressed).

Returns:

Nonzero if successful, 0 otherwise.

Speed:

Fast

Example:

VECTOR vOut;
pXcon_getposition(wheel,vOut);

See also:

pXcon_add, pXcon_setwheel, pXcon_getanchorpoint