I want to make a simple endless runner. Just so that the player always moves to the right.
But no matter which moving method I choose(velocity, moveposition, addforce) the cube(player) allways moves jittery so every 1-2 second the player teleports like a microstrip back. Although with more than 100 FPS. It is definitely not a performance problem(checked the profiler). But I don’t know what`s the cause of it. I Tested it also on my android device but there it is aswell.
Please if anyone had the problem already or knows some tipps please reply. ![]()
If you haven’t already, you should try camera damping.
Even if the player is slightly jittery, forcing the camera to move at a more constant rate can help.
Also, when you say “endless runner” you are keeping the runner at 0,0 right? If you’re moving too far in any direction you’re going to slam into floating point errors.