Drakon
05-04-2007 18:18:38
I want to set ID for MaterialID by myself so I'm doing:
now everything is working fine, but if there is a collision between floor and another object I have an error...
If I make my floor material like this :
everything is fine at the collision...
Anybody know why it is happening??
int id = 10;
OgreNewt::MaterialID* floor = new OgreNewt::MaterialID(nWorld,id);
bod->setMaterialGroupID(floor);
now everything is working fine, but if there is a collision between floor and another object I have an error...
If I make my floor material like this :
OgreNewt::MaterialID* floor = new OgreNewt::MaterialID(nWorld);
bod->setMaterialGroupID(floor);
everything is fine at the collision...
Anybody know why it is happening??