Hi question a)
Are there any properties within Cinemachine that can be polled to see if a vcam has switched to another vcam?
I’m trying to mimic the Silent Hill movement where if a player has a cam switch but keeps the key down, the player will continue to move in the previous transform direction until the key is released? I have the code necessary to make the player move relative to the camera, but the second it switches to another perspective the player moves the direction of the new camera’s transform, often the opposite way.
[14:36]
Here is a perfect example of what I’m trying to achieve. The player moves down and yet technically is moving up in the next scene whilst still holding down until it’s released.
Here is a list of what I want to achieve:
-Game Initialized, Cam Heading Controller (Empty Transform) instantiated and given Camera’s transform.
-Player Enters a trigger that causes ClearShot to blend to next Vcam.
*Player GameObject Movement method registers vcam switch has occurred via either vCam name update check or retrieving some kind of active vcam property from ClearShot/CinemachineBrain, if there is one.
-CHC remains at its original transform for now, but begins checks at an interval to see if the input values from the keys/joystick change to inverted normalized (opposite directions) amount.
-Player lets go of the controls or moves opp normalized value of CHC transform.
-CHC snaps to Camera’s new transform
-CHC stops checking for player’s input until next cam change
- the part essentially struggling with.
Thanks
