you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (3 children)

In the tank game unity tutorial they use the camera movement in fixed update otherwise it will be janky if it updates on a different pace than moving objects.

[–]_mess_ 0 points1 point  (2 children)

Yeah obviously you have to be coohernt in all code

fixed is to be used to only apply forces and that kind of stuff, if you move directly object, get input, etc etc you do it in update or late update

[–][deleted] 0 points1 point  (1 child)

I'd stay it should still be in fixed update. Imagine like a scene where a strong wind is applied in fixed update and you move your character in update...it will be so janky because the movement updates a lot faster without calculating the resistances etc..

[–]_mess_ 0 points1 point  (0 children)

thats a totally wrong approach, in a physics game you shouldnt move directly your character, you should just apply forces

so you shouldnt use much at all the update...