Difference between revisions of "NewtonCorkscrewGetJointForce"

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

Latest revision as of 08:02, 10 June 2019

NewtonCorkscrewGetJointForce

void NewtonCorkscrewGetJointForce( const NewtonJoint* Corkscrew, dFloat* force)

Usage

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

Parameters

  • const NewtonJoint *corkscrew - pointer to the joint.
  • NewtonCorkscrewCorkscrewUpdateDesc *desc - is the pointer to the Corkscrew or slide structure.
  • dFloat distance - desired stop distance relative to the pivot point

Return

  • the relative linear 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