NewtonMaterialSetDefaultElasticity

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

NewtonMaterialSetDefaultElasticity

Syntax:

void NewtonMaterialSetDefaultElasticity( const NewtonWorld* newtonWorld, int id0, int id1, dFloat elasticCoef)

Usage

Sets the default coefficients of restitution (elasticity) for the material defined by the interaction between two physics groups.

Parameters

  • const NewtonWorld *newtonWorld - is the pointer to the Newton world
  • int id0 - group id0
  • int id1 - group id1
  • dFloat elasticCoef - static friction coefficients

Remarks

  • elasticCoef must be a positive value. It is recommended that elasticCoef be set to a value lower or equal to 1.0, default value is 0.4