From 4dc5202558ffa158e1b9c26750ebcf37d70e1db6 Mon Sep 17 00:00:00 2001 From: Andrzej Kapolka Date: Wed, 29 Mar 2006 19:42:58 +0000 Subject: [PATCH] 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 --- src/java/com/threerings/jme/JmeApp.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/java/com/threerings/jme/JmeApp.java b/src/java/com/threerings/jme/JmeApp.java index 8bd2e1976..88fd42dd4 100644 --- a/src/java/com/threerings/jme/JmeApp.java +++ b/src/java/com/threerings/jme/JmeApp.java @@ -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());