Rotating the entity/node, not the character

Butcher_of_Life

19-11-2007 21:08:43

having problem with rotating just the enity/scene node, without rotating the NxCharacter as well. I just want the ninja to face another direction, without rotating it's base.

I'm currently using:
Character->getNode()->rotate( Ogre::Vector3::UNIT_Y, Ogre::Radian( Ogre::Math::PI * 0.5 ) );
but it just rotates for one frame and then it's back to it's default rotation. when I do this to a normal (not a nxcharacter object) scene node, it stays rotated, and there's no problem at all. why is this different with nxogre, and how can I make it work as I want?

betajaen

19-11-2007 21:12:18

The character is rotating it right back after you've rotated. It's normal behaviour.

What you need to do is add a second node with ninja and orientation to the characters node. Your rotation will be accounted for then.

Butcher_of_Life

19-11-2007 21:15:57

The character is rotating it right back after you've rotated. It's normal behaviour.

What you need to do is add a second node with ninja and orientation to the characters node. Your rotation will be accounted for then.


dude, I just, like, two seconds ago read the post on page 4 or something like it =D sorry, should've searched a little more before posting! thanks a lot anyways!