This is probably a simple question, but I noticed world:step() is supposed to use a consistent variable (1/60 usually). I'm curious what is the best way to take into account some devices may run at 60 fps, while others may run a bit slower. To keep this in mind, I figured time-based code would be best, so regardless of your fps everything happens within the same amount of time. This made me wonder how I should approach this and all I can think of is keeping track of how many steps have been made and keep track of total time run and then make as many steps as needed each frame to keep up related to the time.
Does that sound about right, or is there a better way to handle this? Thanks!