mirror of
https://github.com/michaelrausch/Party-Parrots-At-Sea.git
synced 2026-05-09 14:28:43 +00:00
Made sails luff in the right direction.
#story[1111]
This commit is contained in:
@@ -170,7 +170,11 @@ public class BoatObject extends Group {
|
||||
points[i * 2] = 5 * Math.sin(((Math.PI * i) / 25 + sailState));
|
||||
points[i * 2 + 1] = (BOAT_HEIGHT * i) / 25 + BOAT_HEIGHT / 4;
|
||||
}
|
||||
sailState = sailState + Math.PI / 10;
|
||||
if (sailState == - 2 * Math.PI) {
|
||||
sailState = 0;
|
||||
} else {
|
||||
sailState = sailState - Math.PI / 10;
|
||||
}
|
||||
sail.getPoints().clear();
|
||||
sail.getPoints().addAll(points);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user