Skip to content

Improve ship camera reset #593

@BarthPaleologue

Description

@BarthPaleologue

In ShipControls, we create an animation to reset the rotation of the 3rd person camera.

This reset has a slight issue: if we rotate the camera multiple time around the ship, resetting the camera will also make the camera rotate multiple times around the ship to get back to its original position.

Capture.video.du.2025-11-29.14-16-44.mp4

This is because we are not considering the angle modulo 2*Pi.

To complete this issue, change the animation to perform the smallest rotation possible to get the original rotation state.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions