Hey guys!
Nice community over here aroun box2d. 🙂
I have tried to struggle on by using google, this forum and my own solutions to create a topdown view car game and now I faced problem that looks like too much for me.
I'm trying to apply slowmotion by changing my timeStep from 1 / 30 to 1 / 60, this I think is the right way to do slow motion in box2d. Em I right?
Then I keep updating my actor sprites positions every frame to keep the movement smooth, but I call my actor methods where all the box2d stuff happens every 2 frames, because I dropped my timestep to half. This is the part i'm not sure that em I doing it right. It's only how I figured out to do it... -> Call box2d related methods every second frame, because box2d functions twice slower than before.
Now here comes the weird issue.. When I drive in slow motion without steering, it runs perfectly the same way as in normal motion.. ok thats fine.. Now if I do turns, donuts etc. it doens't do it perfectly the same way with and w/o slow motion. It feels like theres a tiny power loss because of the slowmotion. The power loss is not large, but it's something I can't deal with.
Has any one some kind of explanation for this, could it be because of the way I call the car propelling methods on every second frame and if so how should I implement it then? 🙁
PS:
I move the car that has 4 wheels, by applying linear velocty to each wheel, so if it runs perfectly straight, I cant understand what makes the difference in turning.
Nice community over here aroun box2d. 🙂
I have tried to struggle on by using google, this forum and my own solutions to create a topdown view car game and now I faced problem that looks like too much for me.
I'm trying to apply slowmotion by changing my timeStep from 1 / 30 to 1 / 60, this I think is the right way to do slow motion in box2d. Em I right?
Then I keep updating my actor sprites positions every frame to keep the movement smooth, but I call my actor methods where all the box2d stuff happens every 2 frames, because I dropped my timestep to half. This is the part i'm not sure that em I doing it right. It's only how I figured out to do it... -> Call box2d related methods every second frame, because box2d functions twice slower than before.
Now here comes the weird issue.. When I drive in slow motion without steering, it runs perfectly the same way as in normal motion.. ok thats fine.. Now if I do turns, donuts etc. it doens't do it perfectly the same way with and w/o slow motion. It feels like theres a tiny power loss because of the slowmotion. The power loss is not large, but it's something I can't deal with.
Has any one some kind of explanation for this, could it be because of the way I call the car propelling methods on every second frame and if so how should I implement it then? 🙁
PS:
I move the car that has 4 wheels, by applying linear velocty to each wheel, so if it runs perfectly straight, I cant understand what makes the difference in turning.