Skip to content

Add rotation support to WaypointMoveComponent#1476

Open
Kuhsea wants to merge 1 commit into
AlmasB:devfrom
Kuhsea:add-waypoint-rotation
Open

Add rotation support to WaypointMoveComponent#1476
Kuhsea wants to merge 1 commit into
AlmasB:devfrom
Kuhsea:add-waypoint-rotation

Conversation

@Kuhsea

@Kuhsea Kuhsea commented May 12, 2026

Copy link
Copy Markdown

This PR adds optional rotation support to WaypointMoveComponent.

Changes made:

  • Added allowRotation(boolean) to enable or disable rotation towards the current waypoint.
  • Rotation is calculated using the vector from the entity’s current anchored position to the next waypoint.
  • Added a new fxgl-samples example showing an arrow-shaped entity moving between waypoints with rotation enabled.

This addresses the remaining part of issue #980.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant