Skip to content

Camera 2D should (optionally) rotate with the follow target #341

@nanodeath

Description

@nanodeath

Project Type

2D

Feature Description

When a PhantomCamera2D is in Follow Mode Glued or Simple, the camera should, in some cases, also match the global rotation of the follow target.

Use Cases

One example would be a top-down racing game. Assuming the world is static and the car is the object moving around (and the camera is following the car), I may want the car to remain fixed in the middle of the viewport pointing up. The current behavior is that "up" (-Y) is always at the top of the screen.

(Optional) Proposed Solution

From a user perspective, I'd like to see a checkbox in the main section for enabling rotation matching. Conceivably there could also be some kind of damping specifically for rotation, but it could be nauseating so I'd personally turn that feature off.

This may be related to #214.

Metadata

Metadata

Assignees

No one assigned

    Labels

    2DIssues concerning 2D scenesenhancementNew feature or requestphantom cameraRelated to PhantomCamera nodes

    Projects

    Status

    ✅ Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions