I am trying to rotate a scene node upon user input (A or D keys)
I already have forward and backwards movement as follows...
switch(event.KeyInput.Key)
{
case KEY_KEY_W:
case KEY_KEY_S:
{
core::vector3df v = node1->getPosition();
v.X += event.KeyInput.Key == KEY_KEY_W ? 4.0f : -4.0f;
node1->setPosition(v);
}
return true;
What I want to do is a similar thing with rotation with A and D. I thought that this might work...
case KEY_KEY_A:
case KEY_KEY_D:
{
core::vector3df r = node1->getRotation();
r.rotateXZBy(event.KeyInput.Key == KEY_KEY_A ? 4.0f : -4.0f, r);
}
return true;
}
but it doesn't.

Many thanks...
Eric the half a bee