private static final Color MY_WHEAT= Color.WHEAT.deriveColor(0.0, 1.0, 0.5, 1.0);
public Fuselage() {
Rectangle back= new Rectangle(4, 4);
back.setTranslateX(-2);
back.setTranslateY(-2);
back.setTranslateZ(40);
back.setFill(Color.YELLOW);
Rectangle front= new Rectangle(4, 4);
front.setTranslateX(-2);
front.setTranslateY(-2);
front.setTranslateZ(-40);
front.setFill(Color.YELLOW);
Rectangle top= new Rectangle(4, 80);
top.setTranslateX(-2);
top.setTranslateY(-38);
top.setRotationAxis(Rotate.X_AXIS);
top.setRotate(90);
top.setFill(MY_WHEAT);
Rectangle bottom= new Rectangle(4, 80);
bottom.setTranslateX(-2);
bottom.setTranslateY(-42);
bottom.setRotationAxis(Rotate.X_AXIS);
bottom.setRotate(90);
bottom.setFill(MY_WHEAT);
Rectangle left= new Rectangle(80, 4);
left.setTranslateX(-42);
left.setTranslateY(-2);
left.setRotationAxis(Rotate.Y_AXIS);
left.setRotate(90);
left.setFill(Color.WHEAT);
Rectangle right= new Rectangle(80, 4);
right.setTranslateX(-38);
right.setTranslateY(-2);
right.setRotationAxis(Rotate.Y_AXIS);
right.setRotate(90);
right.setFill(Color.WHEAT);
getChildren().addAll(back, front, bottom, top, left, right);
}