Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MixingCamera equivalent? #335

Open
Mangonels opened this issue Jun 19, 2024 · 1 comment
Open

MixingCamera equivalent? #335

Mangonels opened this issue Jun 19, 2024 · 1 comment

Comments

@Mangonels
Copy link

Project Type

3D

Feature Description

I know this project takes inspiration from Cinemachine, so it should make it easier to understand my proposal.

I'd like a feature to be added such as CinemachineMixingCamera.

image

For those who don't know, this component allows you to position the main camera between two (the immediate children to the mixing camera component) virtual cameras, according to Left and Right camera weights (seen in image above). It's essentially an interpolation that can be tweaked by these values.

Use Cases

https://youtu.be/Qc6q5Nk65JU

In the video you can see the camera is moved further on relative to the character controlled by the player, left or right according to player horizontal movement input, so the player can actually see forward a bit in advance for better foreseeing.

To be honest, I haven't even tried phantom camera yet (should get to it today, I'd start by messing around with a simple camera that follows and targets apropiately), but I did read about all of it's features and it's hard for me to imagine how I could achieve the same results as in unity, with the current phantom camera repertoire.

However, if there is currently some way to achieve this I'd like to try it out, please let me know.

(Optional) Proposed Solution

Pretty much the same as described functioning in CinemachineMixingCamera.

@ramokz
Copy link
Owner

ramokz commented Jun 27, 2024

It does sound quite similar to the lookahead feature (#160 #284), just without velocity being a factor in the camera's offset, and instead explicitly relying on another PCam's position.

I do think it can be achieved based on the current set of features by programmatically applying an offset, with a clamped value, to the PCam as you move in a given direction. It's obviously less easy to adjust than placing a separate PCam, especially if you need a more complex angle between the camera points. So MixingCamera feels like a quality-of-life feature to get around having to do that.

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

No branches or pull requests

2 participants