Skip to content

Removed edge constraints in FreeFlying mode#174

Merged
jhanca-robotecai merged 2 commits intoo3de-2505from
pantosz/improve_spectator_camera
Mar 24, 2026
Merged

Removed edge constraints in FreeFlying mode#174
jhanca-robotecai merged 2 commits intoo3de-2505from
pantosz/improve_spectator_camera

Conversation

@patrykantosz
Copy link
Copy Markdown
Contributor

What does this PR do?

This PR removes the edge constraints in FreeFlying mode. Without this PR, the camera rotation in FreeFlying mode is limited by the screen size. If the cursor reaches the screen edge, the camera becomes blocked in that plane. This is due to the use of the GetSystemCursorPositionNormalized function, which returns the cursor position in normalized screen space. This is useful for the ThirdPerson mode, but limits the FreeFlying mode. With this PR, the camera can rotate freely along the X and Y axes without limitations, similar to the O3DE Fly Input Camera.


How was this PR tested?

By using RobotecSpectatorCamera in both ThirdPerson and FreeFlying modes.


Screenshots / Logs / Supporting Evidence (if applicable)

NA


Committer Checklist

Please confirm the following before marking this PR as ready for review:

  • Code changes are well-documented
  • Tests have been added or updated
  • Code owners file and CI config were updated if new Gem was added
  • The code is formatted according to the project's style guide
  • The version number has been updated according to the contributing guidelines

Signed-off-by: Patryk Antosz <patryk.antosz@robotec.ai>
Signed-off-by: Patryk Antosz <patryk.antosz@robotec.ai>
@jhanca-robotecai jhanca-robotecai merged commit abd85ea into o3de-2505 Mar 24, 2026
1 check passed
@jhanca-robotecai jhanca-robotecai deleted the pantosz/improve_spectator_camera branch March 24, 2026 13:00
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.

2 participants