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