Yakuru
13-02-2008 11:28:39
Hi,
So First look at my code it will be more efficient :
So as you can see I want to rotate my entity with his node but it doesn't work,the entity stay at the same position .
why i can't rotate my entity in this way.
(note that if i change the scale of my node, my entity change well)
thanks
So First look at my code it will be more efficient :
mNxOgreCamion=mScene->createBody("camionPolice.mesh",new CubeShape(30.5f),Vector3::ZERO,"Mass: 20");
mNxOgreCamion->getNode()->rotate(Vector3(1,0,0),Ogre::Radian(-_PI_/2));
So as you can see I want to rotate my entity with his node but it doesn't work,the entity stay at the same position .
why i can't rotate my entity in this way.
(note that if i change the scale of my node, my entity change well)
thanks