public ResetCameraAction(ICamera c) { camera = c; upAxis = camera.getUpAxis(); rightAxis = camera.getRightAxis(); viewAxis = camera.getViewDirection(); location = camera.getLocation(); }
@Override public void performAction(float arg0, Event arg1) { camera.setLocation(location); camera.setAxes(rightAxis, upAxis, viewAxis); }