How to make effect denger zone like that if overlap it will marge outline

  • Toxe replied to this.

    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

    Botzz What do you use for drawing these at the moment?

      12 days later


      Toxe sorry im new in world programing. i just trying make enemy with danger zone like that, if 2 enemy zone overlaps i want like right picture i dont now to make an outline to enemy zone mybe shader or somthing , here exemple