NewtonMaterialSetContactNormalAcceleration

From Newton Wiki
Revision as of 08:02, 10 June 2019 by WikiSysop (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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.

See also

NewtonMaterialSetCollisionCallback