NewtonBodySetMaterialGroupID

From Newton Wiki
Jump to: navigation, search

NewtonBodySetMaterialGroupID

void NewtonBodySetMaterialGroupID( const NewtonBody* bodyPtr, int id)

Usage

Assign a material group id to the body.

Parameters

  • const NewtonBody *bodyPtr - pointer to the body.
  • int id - id of a previously created material group.

Return

  • Nothing.

Remarks

  • When the application creates a body, the default material group, defaultGroupId, is applied by default.

See also

NewtonBodyGetMaterialGroupID NewtonMaterialCreateGroupID NewtonMaterialGetDefaultGroupID