NewtonContactGetMaterial

From Newton Wiki
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