report the camera target in the ExampleBrowser StatusBarMessage

(so the parameters reported are compatible with the resetDebugVisualizerCamera API)
This commit is contained in:
erwincoumans
2017-12-14 09:36:36 -08:00
parent 1661cf9189
commit e0bb359804

View File

@@ -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);
}