NewtonMaterialGetContactTangentSpeed
NewtonMaterialGetContactTangentSpeed
dFloat NewtonMaterialGetContactTangentSpeed (const NewtonMaterial* material, int index);
Usage
Calculate the speed of this contact along the tangent vector of the contact.
Parameters
- const NewtonMaterial* material - pointer to a material contact joint
- int index - index to the tangent vector. This value can be 0 for primary tangent direction or 1 for the secondary tangent direction.
Return
- Contact tangent speed.
Remarks
- This function can only be called from a material callback event handler (NewtonContactsProcess).