anear
26-03-2007 13:31:44
I have a problem regarding to rotating a NxOgre body. In the following screenshot, the left hand is an Ogre::Entity, and the right hand is an NxOgre::Body. I'm trying to yaw them 180 degree.
http://picasaweb.google.com/minhua.eunice.ma/Temp/photo#5046207681214723570
This is the code:
I tried pitch and roll on "myCube", it showed the same pose. Body->mNode->pitch/yaw/roll just doesn't work.
Any thought on this? Thank you.
http://picasaweb.google.com/minhua.eunice.ma/Temp/photo#5046207681214723570
This is the code:
ent = mSceneMgr->createEntity("LinkedBody3","Lhand.mesh");
node = mSceneMgr->getRootSceneNode()->createChildSceneNode( "handNode3", Vector3(-4,3,-4));
node->attachObject( ent );
node->scale(30, 30, 30);
node->yaw(Degree(180));
myCube = mScene->createBody("LinkedBody4","Rhand.mesh", new cubeShape(1),10.0f,Vector3(4,3,-4));
myCube->setIgnoreGravity(true);
myCube->mNode->scale(30, 30, 30);
myCube->mNode->yaw(Degree(180));
I tried pitch and roll on "myCube", it showed the same pose. Body->mNode->pitch/yaw/roll just doesn't work.
Any thought on this? Thank you.