Checked if a boat has crossed the boundary/course limit, if so, bounce the boat back.

#story[1117] #pair[hyi25, zyt10]
This commit is contained in:
Zhi You Tan
2017-08-16 16:33:14 +12:00
parent bf016356a6
commit 7f3d66d01d
3 changed files with 140 additions and 82 deletions
+1 -1
View File
@@ -60,7 +60,7 @@ public class ServerYacht extends Observable {
this.country = country;
this.sailIn = false;
this.isAuto = false;
this.location = new GeoPoint(57.670341, 11.826856);
this.location = new GeoPoint(57.67046, 11.83751);
this.lastLocation = location;
this.heading = 120.0; //In degrees
this.currentVelocity = 0d; //in mms-1