I’m experimenting with Cinemachine (v3) and I found out about the Deoccluder extension.
I’m struggling to understand how to work with it, though. From what I understood, the PullCameraForward
strategy moves the virtual camera closer to the Tracking Target
until there are no colliders being raycast between the camera and the target.
The other two strategies seem more interesting, as they move and rotate the camera to try and never let a collider between camera and target, either maintaining distance or camera height.
However, both these strategies permanently move and rotate the camera in relation to the target, never returning to it’s original position. Is there a way to have the CinemachineDeocculder
have this behavior? If I use both CinemachineDeoccluder
and set up Cinemachine
's rotation and movement controls, then, whenever the deoccluder detects an occlusion, the camera goes totally haywire.