What I am doing:
As soon as a body(bodyA) collides with another body (bodyB), bodyA will be destroyed
and will be recreated as a fixture on bodyB with a position relative to bodyB.The Issue:
The fixtures are placed relative to the body, however this fails
when you have a fixture being placed on top of another fixture.What I want to do:
Place the newly created fixtures relative to the position of the fixture it is colliding with (not the body!).
But I can't seem to do this! Fixtures don't have a position, only bodies do!
I've tried giving a position in fixture's user data to use but I ended up with the same result as in 3 (overlap, not on top),
because I am getting the position of body of the object being collided (but I want the position of the fixture being collided).
Take a look at the pic below