Hey Peeps,
I finally wanna solve my spectator mode problem.
When the localPlayer dies, I use setCameraMatrix(getCameraMatrix()) to make the camera stop following
and prevent this shaking thing.
But after about 3 seconds it still starts to shake..
Also, sometimes the camera flies back to the last position of the dead player and you can still see the body lying there.
Its not that bad to see the dead body since they can be moved away, but I don't understand why the camera seems to auto focus the player, even though I cleared the camera target before.
I tried using spawnPlayer on death to prevent any camera manipulation caused by death, but its basically the same thing, camera focuses the player. Only difference is the Player isn't dead.
I really need someone who knows about this..
It became really annoying, and checking how its done in race resource wasn't helpful at all.
Bonsai