I have a body (Spaceship) made out of about 100 fixtures. I want it to have a force-field, so other bodies around it are repelled from it. I know the math, but should I be using a large sensor object, or repeated area querying around the ship to get the other bodies?
I started doing it with area query, but realized it had to sort through all its own fixtures first (I know how to filter, but it's just more expensive compared to if they just didn't pop up at all) So would a sensor object be better for this? Also for future reference, what are the comparative advantages and disadvantages of the two?
I started doing it with area query, but realized it had to sort through all its own fixtures first (I know how to filter, but it's just more expensive compared to if they just didn't pop up at all) So would a sensor object be better for this? Also for future reference, what are the comparative advantages and disadvantages of the two?