[0.9] Character .setDirection not working

SiWi

27-01-2008 15:08:01

I have a problem with Characters in [0.9]. The Character is working properly, but I use .setDirection every frame and I always pass an Quaternion that is not the same as the standard Orientation, but nothing happens. What could be the reason?
I also use setRawNextMovementDirection every frame and it works so it isn´t asleep.
Also I have another question according to characters: I can use the bindToAnimation thingy, but how can I use the MV_... variables?

dbrock

27-01-2008 21:30:37

This works for me:

// Make changes to orientation
m_Character->getNode()->yaw( -Ogre::Radian( Ogre::Degree( relX * 0.07f ).valueRadians() ) );
// Update direction
m_Character->setDirection( m_Character->getNode()->getOrientation() );

SiWi

28-01-2008 14:41:18

Shouldn´t setting the Direction of the Character also result in changing of the Character´s Node´s Direction?