How to make effect denger zone like that if overlap it will marge outline
Marge denger zone indicator
- Edited
Just don't draw a point of the outline if it's within the other circle. So in pseudocode:
((x, y) - own_circle.position).magnitude() = own_circle.radius^2 && ((x,y) - other_circle.position).magnitude() > other_circle.radius