Is this possible

Hi,

I came across this game - http://www.kongregate.com/games/longani ... clomaniacs

I tried to make something like this, now i could make the first rider that is controlled by keyboards and also i was able to make a second rider that would drive on its own ....

But the problem comes when they both come in contact with each other they collide and act as obstacle for each other, while in the demo link all driver just drive and do not hit each other as real objects, how can i disable this collision , as if they collide no driver can overtake the other , as it has to jump over the driver in front or will always remain behind .....

Kindly guide ...

Regards
Jin
Basically what i want is for the bodies to become transparent so that they can go through each other with out colliding with each other .... I tried making then kinematic but that did not work ...

Regards
Jin
You need to set the category and mask bits of the collision filter in these fixtures appropriately. This might be helpful: http://www.iforce2d.net/b2dtut/collision-filtering
You would need a category for the ground, and one for each rider.
You can also extend the b2ContactFilter class to decide for each two fixtures whether they should collide.
Thank you @irrestibleforce - i went through the link and it worked ...


Thanks again

Regards
Jin

Original thread: https://box2d.org/forum/viewtopic.php?t=9285