Compare commits

...

1 Commits

Author SHA1 Message Date
Alistair McIntyre 56d18ad8ad - Initial commit to attempt to smooth turning.
tags : #issue[78]
2017-09-28 12:13:10 +13:00
@@ -104,6 +104,7 @@ public class ServerYacht {
* @param secondsElapsed The seconds elapsed since the last update of this yacht * @param secondsElapsed The seconds elapsed since the last update of this yacht
*/ */
public void updateLocation(Double secondsElapsed) { public void updateLocation(Double secondsElapsed) {
//test
lastLocation = location; lastLocation = location;
location = GeoUtility.getGeoCoordinate(location, heading, currentVelocity * secondsElapsed); location = GeoUtility.getGeoCoordinate(location, heading, currentVelocity * secondsElapsed);
} }