- Perspective Camera Works

- Top Down Camera Works
- Started on chase cam but the math is a bit tricky.

tags : #story[1273]
This commit is contained in:
Alistair McIntyre
2017-09-21 14:40:35 +12:00
parent c39582de5c
commit 6ff309a40c
6 changed files with 258 additions and 14 deletions
@@ -15,6 +15,7 @@ import javafx.beans.property.ReadOnlyLongWrapper;
import javafx.scene.paint.Color;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import seng302.visualiser.fxObjects.assets_3D.BoatObject;
/**
* Yacht class for the racing boat. <p> Class created to store more variables (eg. boat statuses)
@@ -56,6 +57,8 @@ public class ClientYacht extends Observable {
private Integer boatStatus;
private Double currentVelocity;
private BoatObject boatObject;
private List<YachtLocationListener> locationListeners = new ArrayList<>();
private List<MarkRoundingListener> markRoundingListeners = new ArrayList<>();
private ReadOnlyDoubleWrapper velocityProperty = new ReadOnlyDoubleWrapper();
@@ -288,4 +291,12 @@ public class ClientYacht extends Observable {
public Double getCurrentVelocity() {
return currentVelocity;
}
public void setBoatObject(BoatObject newBoatObject) {
this.boatObject = newBoatObject;
}
public BoatObject getBoatObject() {
return this.boatObject;
}
}