Added a transition time to rotational movement.

The aim is to make animations smoother when the boat turns. Unsure if current
 implementation will look good without testing on a datastream.

 #story30c
This commit is contained in:
cir27
2017-04-25 03:12:30 +12:00
parent 46037b5aea
commit ef874b4245
2 changed files with 37 additions and 14 deletions
@@ -246,8 +246,9 @@ public class CanvasController {
for (Boat boat : boats) {
BoatPolygon bp = new BoatPolygon(boat, Colors.getColor());
bp.moveBoatTo(startingX, startingY);
bp.moveBoatTo(startingX, startingY, 0d);
bp.setDestination(firstMarkX, firstMarkY);
bp.forceRotation();
group.getChildren().add(bp.getWake());
group.getChildren().add(bp);
group.getChildren().add(bp.getTeamNameObject());