NewtonMaterialGetContactNormalSpeed
NewtonMaterialGetContactNormalSpeed
dFloat NewtonMaterialGetContactNormalSpeed (const NewtonMaterial* material);
Usage
Calculate the speed of this contact along the normal vector of the contact.
Parameters
- const NewtonMaterial* material - pointer to a material contact joint
Return
- Contact speed. A positive value means the contact is repulsive.
Remarks
- This function can only be called from a material callback event handler (NewtonContactsProcess).