From 77a28c401c63ee1ce7f596b40d31eabba193aa01 Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Fri, 9 Sep 2005 00:42:15 +0000 Subject: [PATCH] Added isRotating(); changed the default camera velocity to be in line with the other velocities. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3700 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- src/java/com/threerings/jme/input/GodViewHandler.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/java/com/threerings/jme/input/GodViewHandler.java b/src/java/com/threerings/jme/input/GodViewHandler.java index 83edd15fd..2d4f210e4 100644 --- a/src/java/com/threerings/jme/input/GodViewHandler.java +++ b/src/java/com/threerings/jme/input/GodViewHandler.java @@ -110,6 +110,15 @@ public class GodViewHandler extends InputHandler _rotateDelta += deltaAngle; } + /** + * Returns true if the camera is still rotating due to a previous call + * to {@link #rotateCamera}. + */ + public boolean isRotating () + { + return _rotateDelta != 0; + } + // documentation inherited public void update (float time) { @@ -378,7 +387,7 @@ public class GodViewHandler extends InputHandler protected Camera _camera; protected Matrix3f _rotm = new Matrix3f(); - protected float _rotateVelocity = 3*FastMath.PI/2, _rotateDelta; + protected float _rotateVelocity = FastMath.PI, _rotateDelta; protected float _minX = Float.MIN_VALUE, _maxX = Float.MAX_VALUE; protected float _minY = Float.MIN_VALUE, _maxY = Float.MAX_VALUE;