NewtonMaterialGetContactTangentSpeed

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

NewtonMaterialGetContactTangentSpeed

dFloat NewtonMaterialGetContactTangentSpeed (const NewtonMaterial* material, int index);

Usage

Calculate the speed of this contact along the tangent vector of the contact.

Parameters

  • const NewtonMaterial* material - pointer to a material contact joint
  • int index - index to the tangent vector. This value can be 0 for primary tangent direction or 1 for the secondary tangent direction.

Return

  • Contact tangent speed.

Remarks

See also

NewtonMaterialSetCollisionCallback