Hi,
I'm developing a javascript worms clone and I'm using box2d which is working great so far. I'm just facing a problem right now. Every worm is using a circle shaped body. To move a worm I'm applying an horizontal impulse. But I'm being able to push other worms while moving mine which is not great. I would like to prevent this from happening but I dont know exactly how to approach this. I need some impulse to move a single worm at a reasonably speed but it is always enough to push one or two worms more. I thought in detecting the collision from the pushed worm and applying an opposite impulse but it seems too complicated...
Any ideas would be very appreciated.
Thanks
I'm developing a javascript worms clone and I'm using box2d which is working great so far. I'm just facing a problem right now. Every worm is using a circle shaped body. To move a worm I'm applying an horizontal impulse. But I'm being able to push other worms while moving mine which is not great. I would like to prevent this from happening but I dont know exactly how to approach this. I need some impulse to move a single worm at a reasonably speed but it is always enough to push one or two worms more. I thought in detecting the collision from the pushed worm and applying an opposite impulse but it seems too complicated...
Any ideas would be very appreciated.
Thanks