NewtonUpVectorGetPin

From Newton Wiki
Jump to: navigation, search

NewtonUpVectorGetPin

void NewtonUpVectorGetPin( const NewtonJoint* upVector, dFloat *pin)

Usage

Get the up vector pin of this joint in global space.

Parameters

  • const NewtonJoint *upVector - pointer to the joint.
  • dFloat *pin - pointer to an array of a least three floats to hold the up vector direction in global space.

Return

  • nothing.

Remarks

  • the application ca call this function to read the up vector, this is useful to animate the up vector. if the application is going to animated the up vector, it must do so by applying only small rotation, too large rotation can cause vibration of the joint.

See also

NewtonUpVectorSetUserCallback NewtonUpVectorSetPin