Dear all,
I have a Chrono project with an Irrlicht application. I would like to be able to control the position and orientation of the camera for the said application.
I'm currently using this:
vector3d<f32> camera_loc = vector3df(0, 0, 20); // camera location
vector3d<f32> camera_dir = vector3df(0, 0, 0); // "look at" location
appl_CSPR->AddTypicalCamera(camera_loc, camera_dir);
This works fine, but in this way I'm only setting the position camera_loc of the camera and the point camera_dir towards which the camera is looking.
To completely define the camera orientation, one also needs to specify how the camera is rotated along its axis (the one going from camera_loc to camera_dir).
For this I would have to define the "up" vector, that is, the direction that is shown in the upper part of the application window.
This cannot be done with AddTypicalCamera, though. The program automatically assumes that the up vector is along the Y axis and I can't find a way to change this setting.
Is there any way to do this?
Best regards,
Giovanni Mottola