NewtonMaterialSetDefaultSoftness
NewtonMaterialSetDefaultSoftness
Syntax:
void NewtonMaterialSetDefaultSoftness( const NewtonWorld* newtonWorld, int id0, int id1, dFloat softnessCoef)
Usage
Sets the default softness coefficients 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 softnessCoef - softness coefficient
Remarks
- softnessCoef must be a positive value. It is recommended that softnessCoef be set to value lower or equal to 1.0 A low value for softnessCoef will make the material soft. A typical value for softnessCoef is 0.15, default value is 0.1