Request: Partial Collision

I'd like polygons which you can collide with, but only in a certain direction. For example, a box that a character can walk and jump through, but stand on. Useful for platformer where there are objects in the background that you can stand on. Also useful for doorways that you can only pass through in one direction.

I guess to implement this otherwise, we could flip the collision flags depending on if your above/below the object eh..?
In 2.0 you'll be able to filter out collision response based on your specific game needs. So for your particular case you will get a callback with the contact manifold. You will recognize that it is your special box and that the contact normal is not upwards, so you will tell Box2D not to add a contact constraint. There's going to be some work on your end, but it should work.
Erin Catto wrote:
In 2.0 you'll be able to filter out collision response based on your specific game needs.


Fantastic! We can't wait. 😉

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