NewtonMaterialSetContactTangentAcceleration

From Newton Wiki
Jump to: navigation, search

NewtonMaterialSetContactTangentAcceleration

void NewtonMaterialSetContactTangentAcceleration( const NewtonMaterial* materialHandle, dFloat accel, int index)

Usage

Force the contact point to have a non-zero acceleration along the surface plane.

Parameters

  • const NewtonMaterial materialHandle - pointer to a material pair.
  • dFloat accel - desired contact acceleration.
  • 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.

See also

NewtonMaterialSetCollisionCallback NewtonMaterialContactRotateTangentDirections