NewtonSliderCalculateStopAccel

From Newton Wiki
Jump to: navigation, search

NewtonSliderCalculateStopAccel

dFloat NewtonSliderCalculateStopAccel (const NewtonJoint* const slider, const NewtonHingeSliderUpdateDesc* const desc, dFloat position)

Usage

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

Parameters

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

Return

  • dFloat

Description

  • fixme: inconsistent variable capitalisation; some functions use "slider", others "Slider".
  • this function can only be called from a *NewtonSliderCallback* and it can be used by the application to implement slider limits.

See also

NewtonSliderSetUserCallback