NewtonMaterialSetContactFrictionState
NewtonMaterialSetContactFrictionState
void NewtonMaterialSetContactFrictionState( const NewtonMaterial* materialHandle, int state, int index)
Usage
Enable or disable friction calculation for this contact.
Parameters
- const NewtonMaterial materialHandle - pointer to a material pair.
- int state* - new state. 0 makes the contact frictionless along the index tangent vector.
- int index - index to the tangent vector. 0 for primary tangent vector or 1 for the secondary tangent vector.
Return
- Nothing.
Remarks
- This function can only be called from a material callback event handler.