Hi! I have an convex polygon body(dinosaur) and also i have a static polygon body(house). I want that "dinosaur" and "house" would collide only if "dinosaur" hits roof of that house. I think to reach such effect i should check locations of "dinosaur" and "house" when beginCollisionHandlerFunction is called.
But maybe there is more easy way to do so(pick up collision between "dinosaur" and roof of the "house")? Can i know when "dinosaur" hits the roof of the "house" only if "dinosaur" falls on the roof?
Below is image to explain what i want more easy.
Any advices or examples of code would be appreciated.