Update camera before scene graph. That way, nodes (like the unit status

display) can adjust to the camera position in their update 
methods without being a frame out of date.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3988 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Andrzej Kapolka
2006-03-29 19:42:58 +00:00
parent 581242814c
commit 4dc5202558
+3 -3
View File
@@ -396,15 +396,15 @@ public class JmeApp
// recalculate the frame rate
_timer.update();
// update the camera handler
_camhand.update(_frameTime);
// run all of the controllers attached to nodes
_frameTime = (_lastTick == 0L) ? 0f : (float)(frameTick - _lastTick) /
_timer.getResolution();
_lastTick = frameTick;
_root.updateGeometricState(_frameTime, true);
// update the camera handler
_camhand.update(_frameTime);
// update our stats display if we have one
if (_stats != null) {
_stats.update(_timer, _display.getRenderer());