|
@@ -73,7 +73,7 @@ public class TestCameraMotionPath extends SimpleApplication {
|
|
|
cam.setLocation(new Vector3f(8.4399185f, 11.189463f, 14.267577f));
|
|
cam.setLocation(new Vector3f(8.4399185f, 11.189463f, 14.267577f));
|
|
|
camNode = new CameraNode("Motion cam", cam);
|
|
camNode = new CameraNode("Motion cam", cam);
|
|
|
camNode.setControlDir(ControlDirection.SpatialToCamera);
|
|
camNode.setControlDir(ControlDirection.SpatialToCamera);
|
|
|
- camNode.getControl(0).setEnabled(false);
|
|
|
|
|
|
|
+ camNode.setEnabled(false);
|
|
|
path = new MotionPath();
|
|
path = new MotionPath();
|
|
|
path.setCycle(true);
|
|
path.setCycle(true);
|
|
|
path.addWayPoint(new Vector3f(20, 3, 0));
|
|
path.addWayPoint(new Vector3f(20, 3, 0));
|
|
@@ -170,11 +170,11 @@ public class TestCameraMotionPath extends SimpleApplication {
|
|
|
playing = false;
|
|
playing = false;
|
|
|
cameraMotionControl.stop();
|
|
cameraMotionControl.stop();
|
|
|
chaser.setEnabled(true);
|
|
chaser.setEnabled(true);
|
|
|
- camNode.getControl(0).setEnabled(false);
|
|
|
|
|
|
|
+ camNode.setEnabled(false);
|
|
|
} else {
|
|
} else {
|
|
|
playing = true;
|
|
playing = true;
|
|
|
chaser.setEnabled(false);
|
|
chaser.setEnabled(false);
|
|
|
- camNode.getControl(0).setEnabled(true);
|
|
|
|
|
|
|
+ camNode.setEnabled(true);
|
|
|
cameraMotionControl.play();
|
|
cameraMotionControl.play();
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|