Hello,
I am developing a small Air Hockey game and wanted to include Box2D to get a physical correct behavior of the puck (ball). For that I created a dynamic puck and a bumper (you know, the thing you hold in your hand). The bumper follows the movement of the mouse and I can move the ball with my bumper. The problem I have right now is that I have quite a lot of tunneling going on, if I move the bumper very quickly (it is Air Hockey after all). So I set the ball to be a "bullet", but this did not help my problem.
So my question is this: How can you avoid tunneling or is Box2D not a good choice for this kind of game? Or how would you do it?
BTW, I am not using Mouse Joints to move the bumper because then there would be a small delay which I don't want to have. So I am make sure that the Body of the bumper is aligned to the Bumper Object at all times when the mouse gets moved.
Thanks for any help.
.
I am developing a small Air Hockey game and wanted to include Box2D to get a physical correct behavior of the puck (ball). For that I created a dynamic puck and a bumper (you know, the thing you hold in your hand). The bumper follows the movement of the mouse and I can move the ball with my bumper. The problem I have right now is that I have quite a lot of tunneling going on, if I move the bumper very quickly (it is Air Hockey after all). So I set the ball to be a "bullet", but this did not help my problem.
So my question is this: How can you avoid tunneling or is Box2D not a good choice for this kind of game? Or how would you do it?
BTW, I am not using Mouse Joints to move the bumper because then there would be a small delay which I don't want to have. So I am make sure that the Body of the bumper is aligned to the Bumper Object at all times when the mouse gets moved.
Thanks for any help.
.