I want to control the initial camera position (and gaze point, up vector) in the derived class of DemoApplication.
In other words, I want the function like gluLookAt in my DemoApplication.
So, I wrote the following code in initPhysics, but it does not work. How should I change my code?
Code: Select all
m_cameraPosition = btVector3(eyeX, eyeY, eyeZ);
m_cameraTargetPosition = btVector3(gazeX, gazeY, gazeZ);
m_cameraUp = btVector3(upX, upY, upZ);
this->resetPerspectiveProjection();