hello!
hi guys! in my game i'm using a fixed time step for physics (according with the box2d manual) with a value of 1/60 sec.
the problem is that if i test the game an a slow device the physics is a bit slow...
reading on the net there are some solution with some mixed fixed/variable time steps i tested some but with bad results...
someone had any hint/code/example for solving this problem?
box2d manual says that the best value is normally 1/60 and using a variable time step is not a good idea...
Comments
Also there is a great explanation here: http://bitsquid.blogspot.com/2010/10/time-step-smoothing.html
Likes: MikeHart, GregBUG
just tested and work fine... (by applying a filter on deltatime)
but i need to redefine all the forces applied to the objects. (according with filtered deltatime)
when a i go home (now i'm at work) i'll test in more detail.
thank atilim for the tips.
I will keep you informed.
www.tntengine.com
works great!
using filtering on deltatime with a filter value of 0.4 and filtering all the forces applied to the objects.
velocity from 2 to 6 in "world:step(fdt, 6, 3)" because on low frame became instable...
thanks!!!
Likes: atilim, gorkem
www.tntengine.com