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
This commit is contained in:
Michael Bayne
2005-09-09 00:42:15 +00:00
parent 456444da26
commit 77a28c401c
@@ -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;