Well it sort of does, but the camera seems to tilt slightly around its forward axis. When I move right it banks on one side, when I move left it banks on the other. This seems imprecise too, when I move back to where I originally was I may still have some amount of rotation.
Here's my function's code::
Code: Select all
void MoveCamera(int x, int y)
{
float delta = 10.0f;
vector3df& currentPosition = m_activeCamera->getAbsolutePosition();
vector3df currentTarget = m_activeCamera->getTarget();
currentPosition.X += x;
currentPosition.Y += y;
currentTarget.X += x;
currentTarget.Y += y;
m_activeCamera->setPosition(currentPosition);
m_activeCamera->setTarget(currentTarget);
}