Hi there!
This may be a very stupid question, but I just couldn't solve that problem I have myself.
What I have is a compund object, something like a maze. In this maze there are little dots, like cookies, which are shapes of the maze aswell. The whole maze is static. Now there's a dynamic body in this maze and I have to check collisions between this body and these "cookie"-shapes of the maze. If there is a collision I want to destroy the "cookie"-shape.
I tried changing the b2ContactListener-class as it worked for me in another small project, but somehow it seems like the collisions between my bodies and shapes aren't detected. I feel a bit confused now... 😢
Well, I don't know how I should check collisions between this body and these "cookie"-shapes, maybe the answer is an easy one.
I'd appreciate any help! 😀
AgentGrautvornix
This may be a very stupid question, but I just couldn't solve that problem I have myself.
What I have is a compund object, something like a maze. In this maze there are little dots, like cookies, which are shapes of the maze aswell. The whole maze is static. Now there's a dynamic body in this maze and I have to check collisions between this body and these "cookie"-shapes of the maze. If there is a collision I want to destroy the "cookie"-shape.
I tried changing the b2ContactListener-class as it worked for me in another small project, but somehow it seems like the collisions between my bodies and shapes aren't detected. I feel a bit confused now... 😢
Well, I don't know how I should check collisions between this body and these "cookie"-shapes, maybe the answer is an easy one.
I'd appreciate any help! 😀
AgentGrautvornix