NewtonConstraintCreateCorkscrew

From Newton Wiki
Revision as of 08:02, 10 June 2019 by WikiSysop (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

NewtonConstraintCreateCorkscrew

NewtonJoint* NewtonConstraintCreateCorkscrew( const NewtonWorld* newtonWorld, const dFloat* pivotPoint, const dFloat* pinDir, const NewtonBody* childBody, const NewtonBody* parentBody)

Usage

Create a corkscrew joint.

Parameters

  • const NewtonWorld *newtonWorld - is the pointer to the Newton world.
  • const NewtonCollision *pivotPoint - is origin of the corkscrew in global space.
  • const NewtonCollision *pinDir - is the line of action of the corkscrew in global space.
  • const NewtonBody *childBody - is the pointer to the attached rigid body, this body can not be NULL or it can not have an infinity (zero) mass.
  • const NewtonBody *parentBody - is the pointer to the parent rigid body, this body can be NULL or any kind of rigid body.

Return

  • Pointer to the corkscrew joint.

Remarks

  • This function creates a corkscrew and add it to the world. By default joint disables collision with the linked bodies.