I've got a weird issue when using the IConvexHullShapes from irrBullet. My Rigidbodies dont rotate, no matter how they hit the ground, they stay in the same position. Here's a screen of the issue:

Maybe you want to see the code so here it is:
Code: Select all
vector3df pos = camera->getAbsolutePosition();
pos.Y-=0.4;
IAnimatedMeshSceneNode *Node = device->getSceneManager()->addAnimatedMeshSceneNode(device->getSceneManager()->getMesh("MODELS/OTHER/M9mag.b3d"));
Node->setMaterialTexture(0, m_magTex);
Node->setScale(vector3df(0.3,0.3,0.3));
Node->setPosition(pos);
Node->setRotation(vector3df(0,0,0));
Node->setMaterialFlag(irr::video::EMF_LIGHTING, true);
Node->setMaterialFlag(irr::video::EMF_NORMALIZE_NORMALS, true);
ICollisionShape* shape = new IConvexHullShape(Node, Node->getMesh(), 0.02);
//shape->setMargin(0.01);
IRigidBody *body = world->addRigidBody(shape);
body->setCcdValues(0.02,0.02);
return body;