Hi,
I'm making a game where the user moves static bodies around to solve a puzzle. I want to tell if the user has moved the static body to a position already occupied by another static body.
I've got a crude version working using the query callback to get intersecting fixtures but this is returning true when the bounding boxes overlap. I've also tried turning the static bodies into sensors when they are being moved but beginContact doesn't fire for Sensor on Sensor contacts.
What would be the best way to determine if two or more static bodies are overlapping?
I'm making a game where the user moves static bodies around to solve a puzzle. I want to tell if the user has moved the static body to a position already occupied by another static body.
I've got a crude version working using the query callback to get intersecting fixtures but this is returning true when the bounding boxes overlap. I've also tried turning the static bodies into sensors when they are being moved but beginContact doesn't fire for Sensor on Sensor contacts.
What would be the best way to determine if two or more static bodies are overlapping?