NewtonContactGetMaterial

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

NewtonContactGetMaterial

 NewtonMaterial* NewtonContactGetMaterial (const void* contact);

Usage

Returns a pointer to the material associated with the contact specified.

Parameters

  • const void* contact - pointer to the contact point data.

Return

  • Material associated with the contact point.

Description

Returns a pointer to the material associated with the contact specified.

The material returned by the function shall be used to set the material properties of the given contact point in the contact processing callback.

Remarks

Added since Newton 2.0

See also

NewtonMaterialSetContactSoftness NewtonMaterialSetContactElasticity NewtonMaterialSetContactFrictionState NewtonMaterialSetContactFrictionCoef NewtonMaterialSetContactNormalAcceleration NewtonMaterialSetContactNormalDirection NewtonMaterialSetContactTangentAcceleration NewtonMaterialContactRotateTangentDirections