- Initial commit to attempt to smooth turning.

tags : #issue[78]
This commit is contained in:
Alistair McIntyre
2017-09-28 12:13:10 +13:00
parent 4ec23a1785
commit 56d18ad8ad
@@ -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);
} }