mirror of
https://github.com/michaelrausch/Party-Parrots-At-Sea.git
synced 2026-05-09 14:28:43 +00:00
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:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user