Make FixedUpdate camera be static like in Update?
Hello everyone,
So here's my problem, I've been working around a platformer-speed-based game built around Sonic the Hedgehog. The camera for this specific game is intented to have the player moving by a ridigbody affected by the FixedUpdate function. And as such, the camera had to be in FixedUpdate aswell, and this causes the camera to delay and the player starts going faster than the camera, this is the typical behaviour of cases like "Player Movement in FixedUpdate, so camera in FixedUpdate too".
What I wanted to achieve was keeping both sides in FixedUpdate but the camera going at the same speed of the player, like how it would in Update or LateUpdate. I've seen how it acts on the other updates, but the camera will start jittering as soon as the rotation comes in, so it practically won't budge.
I'll be very active on this question as it is a must to my game. Thanks for reading, if any details lack, please let me know and i'll fill in what's left.
moving the player in FixedUpdate is fine, but you should move the camera in LateUpdate. Always. just don't move it by a fixed distance but to where the camera should be behind the player.
Your answer
Follow this Question
Related Questions
Change Camera's size relative to player's speed 0 Answers
What this error? 0 Answers
Delay in update and only one Input.GetButton 1 Answer
Reduce framerate for server 1 Answer
player camera 2 Answers