NewtonCreateDynamicBody

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

NewtonCreateBody

NewtonBody* NewtonCreateDynamicBody (const NewtonWorld* const newtonWorld, const NewtonCollision* const collision, const dFloat* const matrix

Usage

Create a rigid, dynamic body.

Parameters

  • const NewtonWorld *newtonWorld - is the pointer to the Newton world.
  • const NewtonCollision *collisionPtr - pointer to the collision object.
  • const dFloat* const matrix - initial transformation matrix[16] (position and rotation). Same effect as NewtonBodySetMatrix.

Return

  • Pointer to the rigid body.

Remarks

  • This function creates a Newton rigid body and assigns a collisionPtr as the collision geometry representing the rigid body. This function increments the reference count of the collision geometry. All event functions are set to NULL and the material groupID of the body is set to the default GroupID.
  • This function has been renamed in newton 3 (Previously was named NewtonCreateBody)

See also

NewtonDestroyBody