NewtonSliderGetJointForce

From Newton Wiki
Jump to: navigation, search

NewtonSliderGetJointForce

void NewtonSliderGetJointForce( const NewtonJoint* Slider, dFloat* force)

Usage

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

Parameters

  • const NewtonJoint *slider - pointer to the joint.
  • NewtonSliderSliderUpdateDesc *desc - is the pointer to the Slider or slide structure.
  • dFloat distance - desired stop distance relative to the pivot point

Return

  • the relative linear acceleration needed to stop the slider.

Remarks

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

See also

NewtonSliderSetUserCallback