NewtonCorkscrewCalculateStopAccel

From Newton Wiki
Jump to: navigation, search

NewtonCorkscrewCalculateStopAccel

dFloat NewtonCorkscrewCalculateStopAccel (const NewtonJoint* const corkscrew, const NewtonHingeSliderUpdateDesc* const desc, dFloat position)

Usage

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

Parameters

  • const NewtonJoint* const corkscrew
  • const NewtonHingeSliderUpdateDesc* const desc
  • dFloat position

Return

  • dFloat

Description

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

See also

NewtonCorkscrewSetUserCallback