NewtonMaterialGetContactPositionAndNormal

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

NewtonMaterialGetContactPositionAndNormal

void NewtonMaterialGetContactPositionAndNormal (const NewtonMaterial* const material, const NewtonBody* const body, dFloat* const posit, dFloat* const normal)

Usage

Get the contact position and normal in global space.

Parameters

  • const NewtonMaterial materialHandle - pointer to a material pair.
  • dFloat *positPtr, - pointer to an array of at least three floats to hold the contact position.
  • dFloat *normalPtr - pointer to an array of at least three floats to hold the contact normal.

Return

  • Nothing.

Remarks

  • This function can only be called from a material callback event handler.

See also

NewtonMaterialSetCollisionCallback