Difference between revisions of "NewtonHingeCalculateStopAlpha"

From Newton Wiki
Jump to: navigation, search
 
m (1 revision imported)
 
(No difference)

Latest revision as of 08:02, 10 June 2019

NewtonHingeCalculateStopAlpha

 dFloat NewtonHingeCalculateStopAlpha (const NewtonJoint* hinge, const NewtonHingeSliderUpdateDesc* desc, dFloat angle);

Usage

Calculate the angular acceleration needed to stop the hinge at the desired angle.

Parameters

  • const NewtonJoint *Hinge - pointer to the joint.
  • NewtonHingeSliderUpdateDesc *desc - is the pointer to and the Hinge or slide structure.
  • dFloat angle - is the desired hinge stop angle

Return

  • the relative angular acceleration needed to stop the hinge.

Remarks

  • added since Newton 2.0
  • this function can only be called from a NewtonHingeCallBack and it can be used by the application to implement hinge limits.

See also

NewtonHingeSetUserCallback