NewtonUniversalGetJointAngle1

From Newton Wiki
Jump to: navigation, search

NewtonUniversalGetJointAngle1

dFloat NewtonUniversalGetJointAngle1(const NewtonJoint* Universal)

Usage

Get the relative joint angle between the two bodies.

Parameters

  • const NewtonJoint *Universal - pointer to the joint.

Return

  • the joint angle relative to the universal pin1.

Remarks

  • this function can be used during a function update call back to provide the application with some special effect. for example the application can play a bell sound when the joint angle passes some max value.

See also

NewtonUniversalSetUserCallback