Hi,
I want to have a top border in my game that objects can get through it if they are moving downward but if they want to pass it from it’s bottom, i.e. moving upward, they would get removed.
I was trying to do this with collisionBit and maskedBits but I think I can either make Corona (in fact, Box2D) to ignore the collision with them or check the collision.
What I tried so far is to detect if object is going upward or downward with getting it’s linear velocity and check tag of the object it collided with but I can’t make it ignore the collision and go through the object if it’s moving downward and whatever I do, it bounces off from the border.
The effect I want to make can be thought similar to doodle jump, because in that game when object is moving from downward towards a platform, it can get through it but if it’s moving from up to down, it gets collided to the platform.
How can I achieve this?

