|
|
|
|
@ -33,9 +33,9 @@ public class Subject3D {
|
|
|
|
|
this.heading = new Rotate(0, Rotate.Y_AXIS);
|
|
|
|
|
|
|
|
|
|
this.mesh.getTransforms().addAll(position, heading, new Rotate(90, Rotate.X_AXIS), new Rotate(180, Rotate.Y_AXIS));
|
|
|
|
|
this.position.xProperty().addListener(((observable, oldValue, newValue) -> System.out.println("Boat x: " + newValue)));
|
|
|
|
|
this.position.yProperty().addListener(((observable, oldValue, newValue) -> System.out.println("Boat y: " + newValue)));
|
|
|
|
|
this.position.zProperty().addListener(((observable, oldValue, newValue) -> System.out.println("Boat z: " + newValue)));
|
|
|
|
|
// this.position.xProperty().addListener(((observable, oldValue, newValue) -> System.out.println("Boat x: " + newValue)));
|
|
|
|
|
// this.position.yProperty().addListener(((observable, oldValue, newValue) -> System.out.println("Boat y: " + newValue)));
|
|
|
|
|
// this.position.zProperty().addListener(((observable, oldValue, newValue) -> System.out.println("Boat z: " + newValue)));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Shape3D getMesh() {
|
|
|
|
|
|