Now I am writing custom camera function. My camera fallows model that's great but now I wish to make camera turn left/right up/down when mouse is moving...
In my OnEvent function I have variables mouseForceX and mouseForceY,
those gets values -1 0 1 depend how mouse is moving along axis.
These two variables would be very useful if I could set camera angle with
camera->setRotation();
instead of that i must use setTarget(); and this is place where I get stuck, I don't know how recalculate target position for camera...
I tryed do somthing with ISceneCollisionManager::getRayFromScreenCoordinates() but result wasn't what I have expected.
Maybe this task is done with matrices? but I am not sure exactly how :/
I'm still trying to find answer via 'search'
![Smile :)](./images/smilies/icon_smile.gif)