NewtonUniversalCalculateStopAlpha0

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

NewtonUniversalCalculateStopAlpha0

dFloat NewtonUniversalCalculateStopAlpha0( 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 the Universal or slide structure.
  • dFloat angle - is the desired universal stop angle rotation around pin0

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

NewtonUniversalSetUserCallback