Difference between revisions of "NewtonUniversalCalculateStopAlpha0"

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

Latest revision as of 08:02, 10 June 2019

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