NewtonSliderGetJointPosit

From Newton Wiki
Revision as of 08:02, 10 June 2019 by WikiSysop (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

NewtonSliderGetJointPosit

dFloat NewtonSliderGetJointPosit (const NewtonJoint* slider);

Usage

Get the relative joint angle between the two bodies.

Parameters

  • const NewtonJoint *Slider - pointer to the joint.

Return

  • the joint angle relative to the hinge pin.

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

NewtonSliderSetUserCallback