NewtonTreeCollisionGetFaceAttribute

From Newton Wiki
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