Commit 35be6e80 authored by Ivan Dages's avatar Ivan Dages
Browse files

camera controls : cleanup

parent 5f11cc40
...@@ -298,22 +298,12 @@ public class CameraControls { ...@@ -298,22 +298,12 @@ public class CameraControls {
xAxis = transform.inverseDeltaTransform(Rotate.X_AXIS).normalize(); xAxis = transform.inverseDeltaTransform(Rotate.X_AXIS).normalize();
yAxis = transform.inverseDeltaTransform(Rotate.Y_AXIS).normalize(); yAxis = transform.inverseDeltaTransform(Rotate.Y_AXIS).normalize();
} catch (NonInvertibleTransformException e) { } catch (NonInvertibleTransformException e) {
// TODO Auto-generated catch block
e.printStackTrace(); e.printStackTrace();
} }
Point3D translation = new Point3D(0, 0, 0); Point3D translation = new Point3D(0, 0, 0);
translation = translation.add(xAxis.multiply(- translationSensitivity * delta.getX())); translation = translation.add(xAxis.multiply(- translationSensitivity * delta.getX()));
translation = translation.add(yAxis.multiply(- translationSensitivity * delta.getY())); translation = translation.add(yAxis.multiply(- translationSensitivity * delta.getY()));
/*
if (isAltDown) {
translation = new Point3D(0, translationSensitivity * delta.getY(), 0);
} else {
translation = new Point3D(translationSensitivity * delta.getX(), translationSensitivity * delta.getY(), 0);
}
Rotate lonRot = new Rotate(longitude, Rotate.Y_AXIS);
translation = lonRot.transform(translation);
*/
center = center.add(translation.multiply(modifier)); center = center.add(translation.multiply(modifier));
update(); update();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment