NewtonUniversalCalculateStopAlpha1

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

NewtonUniversalCalculateStopAlpha1

dFloat NewtonUniversalCalculateStopAlpha1( const NewtonJoint* universal, const NewtonHingeSliderUpdateDesc* desc, dFloat angle)

Usage

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

Parameters

  • const NewtonJoint *Universal - pointer to the joint.
  • NewtonUniversalSliderUpdateDesc *desc - is the pointer to and the Universal or slide structure.
  • dFloat angle - is the desired universal stop angle rotation around pin1

Return

  • the relative angular acceleration needed to stop the universal.

Remarks

  • this function can only be called from a NewtonUniversalCallBack and it can be used by the application to implement universal limits.

See also