collision filtering

Dunno if this was asked before...couldn't find it, so here I go.
I want to do a platformer but I need to somehow filter the collisions. For example, I have multiple characters...sort of like clones of the main char. I need to be able to walk past them with no problems, but I want to stop if I fall on top of one of them.
Any idea?
Maybe this is useful to you:

viewtopic.php?f=3&t=187
yes...and no...the code there is from am older build...maybe before the contact listener:( oh, forgot to say, I'm a C++ coder 🙂
All shapes have a filter property. Set all characters to have the same category bit (say, 0x0002), and set their mask to filter out that category bit (0xFFFD).

See the manual for more info:
http://www.box2d.org/wiki/index.php?tit ... #Filtering
I read that, but I need to filter interactively...anyway, I found this http://www.box2d.org/forum/viewtopic.php?f=8&t=1748 and it suits my needs too 🙂 so I'll try to implement that 🙂 thanks for the help

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