I'm a complete Box2D newbie, so forgive me if my question has already been answered n times 🙂
Here's the problem I'm trying to solve:
1) I've got 2 Box2D bodies, BodyA and BodyB, and both are "turned off" with SetActive(False), so that they can overlap.
2) Each body is composed of multiple "Polygonal shape" fixtures and are defined by vertex points only, i.e. no circle or box primitives.
3) What I would like to do is to test if the exact outline of BodyA is inside the exact outline of BodyB.
So far, I've looked at b2TestOverlap but as far as I can tell, this function only checks if bounding boxes are overlapping, so I'd be very grateful if one of you could let me know if you've come across functions that would let me do this test with the Box2D API?
Thanks in advance,
Heikki
Here's the problem I'm trying to solve:
1) I've got 2 Box2D bodies, BodyA and BodyB, and both are "turned off" with SetActive(False), so that they can overlap.
2) Each body is composed of multiple "Polygonal shape" fixtures and are defined by vertex points only, i.e. no circle or box primitives.
3) What I would like to do is to test if the exact outline of BodyA is inside the exact outline of BodyB.
So far, I've looked at b2TestOverlap but as far as I can tell, this function only checks if bounding boxes are overlapping, so I'd be very grateful if one of you could let me know if you've come across functions that would let me do this test with the Box2D API?
Thanks in advance,
Heikki