So I'm trying to create some advanced collision detection in my project. I've created a body that has multiple fixtures (using RUBE), and imported it into the project.
Now, depending on which fixture has collided with another game object I want to have different things happen. However, when I get the contact information from the collision, the fixture that's returned is the body itself, not the child fixture that actually had the contact.
Is there a way to figure out which fixture in the body is responsible for a given contact?
FYI, I'm using libGDX and their box2d libs.
Now, depending on which fixture has collided with another game object I want to have different things happen. However, when I get the contact information from the collision, the fixture that's returned is the body itself, not the child fixture that actually had the contact.
Is there a way to figure out which fixture in the body is responsible for a given contact?
FYI, I'm using libGDX and their box2d libs.