NewtonUniversalCalculateStopAlpha0
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.