Default MaterialID

iversons

12-01-2007 03:35:51

Acutally i would like to know what is the default material ID? is it the mBody that we did not assign a material ID is treated as default material ID?

mWorld->getDefaultMaterialID();


Thanks! :)

iversons

12-01-2007 06:15:33

Sorry for the question..

when you create a world, a default material is created, which is by default applied to all new rigid bodies. you might need this pointer when assigning material callbacks, etc.

can i create a pair of default?

OgreNewt::MaterialPair* pair = new OgreNewt::MaterialPair( mWorld, defaultMaterialID, defaultMaterialID );