The trackpoint line is now a line (poly-line) instead of a sequence of circles. A point along the poly-line is added every 250ms.

issue #18
This commit is contained in:
fjc40
2017-08-14 12:58:05 +12:00
parent 175fb11178
commit b07c30704a
3 changed files with 19 additions and 20 deletions
@@ -1,7 +1,5 @@
package visualiser.model;
import javafx.beans.property.SimpleStringProperty;
import javafx.beans.property.StringProperty;
import javafx.scene.paint.Color;
import network.Messages.Enums.BoatStatusEnum;
import shared.model.Azimuth;
@@ -38,7 +36,7 @@ public class VisualiserBoat extends Boat {
/**
* The minimum period of time, in milliseconds, between the creation of each track point.
*/
private static final long trackPointTimeInterval = 5000;
private static final long trackPointTimeInterval = 250;
/**
* The number of track points that should be created before fully diminishing the alpha of a given track point.
@@ -55,7 +53,7 @@ public class VisualiserBoat extends Boat {
/**
* Scalar used to scale the boat's wake.
*/
private static final double wakeScale = 5;
private static final double wakeScale = 20;
/**
* If true then this boat has been allocated to the client.