Geometry setOrientation doesnt have any effect!

sakshi2212

20-02-2009 04:04:22

Ogre::AxisAlignedBox box = blk->getEntity()->getBoundingBox();
OgreOde::EntityInformer ei(blk->getEntity(), blk->getSceneNode()->_getFullTransform());
OgreOde::Geometry *geom = ei.createSingleStaticBox(_world, _space);
OgreOde::TransformGeometry* tgeom = new OgreOde::TransformGeometry(_world, _space);
geom->setOrientation(Ogre::Quaternion(Ogre::Degree(orientOffset.y * 90.0), Ogre::Vector3::UNIT_Y));
geom->setPosition(Ogre::Vector3(blk->getOffset().x, box.getCenter().y, blk->getOffset().z));
tgeom->setEncapsulatedGeometry(geom);



This is my code setting the geometry for an object. But I am not able to rotate it. The position is set correctly.