Closed ciro-unity closed 3 years ago
Hi, I would like to fix this bug!
Feel free to give it a shot, @sergio-nnz! We don't "assign" tasks, but rather evaluate work that is done on them and pull it in if it solves the issue.
If you have a clear idea on how to fix it you can move forward and open a PR, or use this issue for comments, or if you want to bring the discussion to the forums feel free to do so by opening a new thread there.
I think I have a fix. warping the vcam to the player after setting the target seems to work.
public void SetupProtagonistVirtualCamera(Transform target)
{
freeLookVCam.Follow = target;
freeLookVCam.LookAt = target;
freeLookVCam.OnTargetObjectWarped(target,target.position-freeLookVCam.transform.position);
}
I guess the distance can be adjusted a bit to warp the camera to a set distance away from the player.
Should I make a PR
Short description The Cinemachine Vcam lerps into place when a scene is loaded.
Expected behaviour While a small camera movement is ok, it needs to be intentional. As it is now, it's a bug that depends on the camera position at load time.
To Reproduce Steps to reproduce the behavior:
Notes
https://user-images.githubusercontent.com/20049224/106399291-0de47200-6418-11eb-9cc0-e66cf3e87877.mp4