NewtonTreeCollisionGetFaceAttribute

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

NewtonTreeCollisionGetFaceAttribute

int NewtonTreeCollisionGetFaceAttribute (const NewtonCollision* const treeCollision, const int* const faceIndexArray, int indexCount)

Usage

Get the user defined collision attributes stored with each face of the collision mesh.

Parameters

  • const NewtonCollision* const treeCollision
  • const int* const faceIndexArray - pointer to the face index list passed to the function NewtonTreeCollisionCallback userCallback
  • int indexCount

Return

  • int - User id of the face.

Description

  • This function is used to obtain the user data stored in faces of the collision geometry.
  • The application can use this user data to achieve per polygon material behavior in large static collision meshes.

See also

NewtonTreeCollisionSetFaceAttribute NewtonCreateTreeCollision