AlmasB / FXGL

Java / JavaFX / Kotlin Game Library (Engine)
http://almasb.github.io/FXGL/
MIT License
4.45k stars 555 forks source link

Add WaypointMoveComponent #980

Open AlmasB opened 3 years ago

AlmasB commented 3 years ago

To go to fxgl module under dsl.components. The component moves the entity using provided Point2D waypoints.

Existing move-related components can be studied: https://github.com/AlmasB/FXGL/tree/dev/fxgl/src/main/kotlin/com/almasb/fxgl/dsl/components

Please provide API design first, before implementation.

AlmasB commented 2 years ago

To complete, we should also add an option that rotates the entity along the movement vector.