CineMachine Camera hangup on respawn
Attached below is a short YouTube video, showing the issue I am having with CineMachine.
Hey guys, so I am having this weird issue with CineMachine. It only happens on respawn. It is almost like the CineMachine camera knows to follow my GameObjct "Player", but on respawn takes several frames longer to center back on the player. My Player on death gets deactivated and reactivated. I can attach the PlayerController script I have, as well as my LevelManger's respawn CoRoutine.
In the video you see that when I respawn, the camera instantly moves back to the center of the map, but not to where the player will be. That gives it a weird hangup, and I honestly don't know how to fix this.
Any ideas?
I'm having the same issue! did you find a way to overcome it?? i'm thinking of adding a bit of velocity to the player on re-spawn since the camera always stick back to the player when i press a key to move him but its a weird solution...
Answer by yehielc · Feb 03, 2020 at 10:04 PM
well i hacked something... when re-spawning the player i changed the vcams follow by code to the spawn point with: myCinemachine.m_Follow = spawnedPlayer; and then assigned the player again after 1 sec...not the best solution but it works fine :)