Physics max velocity tied to framerate
Posted: Wed Nov 30, 2022 9:31 pm
Hi there!
I've been making a game with some flight simulation in it, and I decided to use love's inbuilt physics engine. However, I noticed some weird behaviour in my game. Occasionally, it would just slow you down randomly, as well as there being a max velocity.
I had a hunch, so I added a sleep into the update function, and sure enough, the maximum velocity was significantly reduced.
It seems weird to me that max speed should be tied to framerate, so does anyone know if there's a way to satisfyingly fix this? I did find online that changing the meter sort of changed the max speed, but this feels like something that there should be a simple solution to.
I've been making a game with some flight simulation in it, and I decided to use love's inbuilt physics engine. However, I noticed some weird behaviour in my game. Occasionally, it would just slow you down randomly, as well as there being a max velocity.
I had a hunch, so I added a sleep into the update function, and sure enough, the maximum velocity was significantly reduced.
It seems weird to me that max speed should be tied to framerate, so does anyone know if there's a way to satisfyingly fix this? I did find online that changing the meter sort of changed the max speed, but this feels like something that there should be a simple solution to.