I am building an RTS prototype, where units follow a non-physical Army Entity to get them from point A to point B.
The army entity has a Physics Body, along with two physics shapes: a trigger that will change size based on the army’s intel range to find other armies, and a collider that can be found by the trigger and collides with the terrain, so it can find terrain features. Both are spheres.
PROBLEM: when one army passes into the detection sphere of another army, the trigger buffer registers the attached entity twice, which means the other army is counted twice when decision-making takes place.
WHAT I’VE TRIED:
Disabling the trigger on one of the armies: It worked, but now that army doesn’t detect enemies.
Playing with filters: No effect.
Is there a feature I’m not aware of to prevent this, or an alternative to a physics shape so I can remove the trigger entirely?
