NewtonMaterialGetDefaultGroupID
NewtonMaterialGetDefaultGroupID
Syntax:
int NewtonMaterialGetDefaultGroupID(const NewtonWorld* newtonWorld)
Usage
NewtonMaterialGetDefaultGroupID returns the material-id of the default material. All other materials are derived from this material, so it might be a good idea to set the most common properties to this material before creating the others.
Parameters
- const NewtonWorld *newtonWorld - is the pointer to the Newton world
Return
The ID number for the default Group ID.
Remarks
Group IDs can be interpreted as the nodes of a dense graph. The edges of the graph are the physics materials. When the Newton world is created, the default Group ID is created by the engine. When bodies are created the application assigns a group ID to the body.