NewtonMaterialSetContactFrictionState

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

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.

See also

NewtonMaterialSetCollisionCallback