report the camera target in the ExampleBrowser StatusBarMessage
(so the parameters reported are compatible with the resetDebugVisualizerCamera API)
This commit is contained in:
@@ -1326,7 +1326,7 @@ void OpenGLExampleBrowser::update(float deltaTime)
|
||||
float camPos[3];
|
||||
s_guiHelper->getRenderInterface()->getActiveCamera()->getCameraPosition(camPos);
|
||||
s_guiHelper->getRenderInterface()->getActiveCamera()->getCameraTargetPosition(camTarget);
|
||||
sprintf(msg,"camTargetPos=%2.2f,%2.2f,%2.2f, dist=%2.2f, pitch=%2.2f, yaw=%2.2f", camPos[0],camPos[1],camPos[2],camDist,pitch,yaw);
|
||||
sprintf(msg,"camTargetPos=%2.2f,%2.2f,%2.2f, dist=%2.2f, pitch=%2.2f, yaw=%2.2f", camTarget[0],camTarget[1],camTarget[2],camDist,pitch,yaw);
|
||||
gui2->setStatusBarMessage(msg, true);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user