Difference between revisions of "NewtonMaterialSetDefaultFriction"

From Newton Wiki
Jump to: navigation, search
 
m (1 revision imported)
 
(No difference)

Latest revision as of 08:02, 10 June 2019

NewtonMaterialSetDefaultFriction

Syntax:

void NewtonMaterialSetDefaultFriction( const NewtonWorld* newtonWorld, int id0, int id1, dFloat staticFriction, dFloat kineticFriction)

Usage

Set the default coefficients of friction 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 staticFriction - static friction coefients
  • dFloat kineticFriction - dynamic coefficient of friction

Remarks

  • Default values for the default material are: Static: 0.9, Dynamic: 0.5

See also