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:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user