NewtonMaterialGetContactFaceAttribute
NewtonMaterialGetContactFaceAttribute
unsigned NewtonMaterialGetContactFaceAttribute(const NewtonMaterial* materialHandle)
Usage
Return the face attribute assigned to this face when for a user defined collision or a Newton collision tree.
Parameters
- const NewtonMaterial materialHandle - pointer to a material pair
Return
- face attribute for collision trees. Zero if the contact was generated by two convex collisions.
Remarks
- This function can only be called from a material callback event handler.
- this function can be used by the application to retrieve the face id of a polygon for a collision tree.