From 56d18ad8ada177a6cf4e0d9a0b81f72563e0f682 Mon Sep 17 00:00:00 2001 From: Alistair McIntyre Date: Thu, 28 Sep 2017 12:13:10 +1300 Subject: [PATCH] - Initial commit to attempt to smooth turning. tags : #issue[78] --- src/main/java/seng302/model/ServerYacht.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/seng302/model/ServerYacht.java b/src/main/java/seng302/model/ServerYacht.java index c092447d..ab922052 100644 --- a/src/main/java/seng302/model/ServerYacht.java +++ b/src/main/java/seng302/model/ServerYacht.java @@ -104,6 +104,7 @@ public class ServerYacht { * @param secondsElapsed The seconds elapsed since the last update of this yacht */ public void updateLocation(Double secondsElapsed) { + //test lastLocation = location; location = GeoUtility.getGeoCoordinate(location, heading, currentVelocity * secondsElapsed); }