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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user