#Cone (line) AoE on 2D cell grid

1 messages · Page 1 of 1 (latest)

thorny igloo
#

I'm trying to make a mod for a game on unity (RimWorld) and having trouble coding a cone or line AoE for weapons/abilities. It has code for radial AoE, but i can't seem to rewrite it for a cone shape.
Furthest i got to is assigning two relatively angled direction vectors.
Desired effect should look like in the image and it should adjust to where the mouse is located.