Difference between revisions of "NewtonCorkscrewCalculateStopAlpha"

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

Latest revision as of 08:02, 10 June 2019

NewtonCorkscrewCalculateStopAlpha

dFloat NewtonCorkscrewCalculateStopAlpha (const NewtonJoint* corkscrew, const NewtonHingeSliderUpdateDesc* desc, dFloat angle);

Usage

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

Parameters

  • const NewtonJoint *Corkscrew - pointer to the joint.
  • NewtonCorkscrewSliderUpdateDesc *desc - is the pointer to the Corkscrew or slide structure.
  • dFloat angle - is the desired corkscrew stop angle

Return

  • the relative angular acceleration needed to stop the corkscrew.

Remarks

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

See also

NewtonCorkscrewSetUserCallback