ramokz / phantom-camera

👻🎥 Control the movement and dynamically tween 2D & 3D cameras. Built for Godot 4. Inspired by Cinemachine.
https://phantom-camera.dev/
MIT License
2.26k stars 77 forks source link

Rotate around look-at target #110

Closed Mondanzo closed 6 months ago

Mondanzo commented 1 year ago

Project Type

3D

Feature Description

at the moment there is no simple way to just let the camera rotate around the target with the positional offset.

Use Cases

One example would be to have a 2D game in 3d space which simply follows the players orientation. While keeping the other features like framing and dampening. danzo_XixO5Ta6h6

Importance

Low - there are workarounds where the proposed feature would just simplify things

Usage

All the time - the feature can be very useful for a varity of different projects

(Optional) Proposed Solution

This could be implemented as a simple bool in addition to the look at modes to just be something like "rotate around target". Then the offset position needs to be rotated by the rotation the look at target gets. Mainly useful for simple and glued.

ramokz commented 1 year ago

Think this is a very good proposal and can definitely see its usefulness. Framed Follow already has an orbit-like rotation behavior, so can't imagine it'll be too difficult to add this as well.

tiloc commented 6 months ago

Would this be similar to Orbital Follow mode in CineMachine?

ramokz commented 6 months ago

Think this could also be achieved using Third Person follow? Would just need to apply the rotational setter methods as the character turns.

ramokz commented 6 months ago

Closing this issue per the above suggestion. Think anything beyond that will creep into a fairly complex solution that effectively just simplifies what Third Person follow can already do.

Feel free to suggest reopening this if there are other opinions, and we can continue the conversation.