NewtonMaterialGetContactPositionAndNormal
Contents
NewtonMaterialGetContactPositionAndNormal
void NewtonMaterialGetContactPositionAndNormal (const NewtonMaterial* const material, const NewtonBody* const body, dFloat* const posit, dFloat* const normal)
Usage
Get the contact position and normal in global space.
Parameters
- const NewtonMaterial materialHandle - pointer to a material pair.
- dFloat *positPtr, - pointer to an array of at least three floats to hold the contact position.
- dFloat *normalPtr - pointer to an array of at least three floats to hold the contact normal.
Return
- Nothing.
Remarks
- This function can only be called from a material callback event handler.