Yes, fixed frame time can help…if framerate is the same accross devices.
I know some racing games compute physics independently from rendering (at a higher frequency sometimes) and result, used for rendering is interpolated for the current rendering time.
Another solution is to not use physics for characted control but custom computation that can use the technics explained here:
Hey @Cedric I spent the last two days trying to fix this with no success x.x
Like, this is a common issue with physics? I think its pretty weird that I didnt found many questions about this topic and I thought that it would be something very common.
I didn’t want to lock the framerate cause it sounds like a work arround to me (maybe I’m wrong) and neither wanted to avoid use physics at all cause I wanted to learn this for further projects, so I would like to try to solve this with computing the phisics independently, but how can I do that? Do babylon have an example of that issue solved?
Sorry for that many questions, Im very unexperienced with game development and 3d so I’m very confused with that
Do I’m trying to solve a uncommon issue or the wrong way?
No, it’s not a common issue. At least not in this forum.
I think a lot of people assume their program will run at a fixed framerate and code everything to stick with that.
AFAIK, there is nothing in the engine to get a deterministic physics with a variable time step.
I’m not even sure it’s possible with physics. maybe more with custom coded spring/dynamics.