NewtonMaterialSetContactNormalAcceleration
Contents
NewtonMaterialSetContactNormalAcceleration
void NewtonMaterialSetContactNormalAcceleration( const NewtonMaterial* materialHandle, dFloat accel)
Usage
Force the contact point to have a non-zero acceleration aligned this the contact normal.
Parameters
- const NewtonMaterial materialHandle - pointer to a material pair.
- dFloat accel - desired contact acceleration, Must be a positive value
Return
- Nothing.
Remarks
- This function can only be called from a material callback event handler.
- This function can be used for spacial effects like implementing jump, of explosive contact in a call back.