there's no way to draw circle in 2D plane then I assume?
Yes, you can code your own function for it:
local pi, cos, sin = math.pi, math.cos, math.sin
local assert = assert
local Vector = Vector
function DrawCircle2D(obj, r, q) --gameObject, range, quality => 1-100
assert(obj.pos2D, "Could not find 2D-coordinates for this object")
local r, q = r or 50, q and 2 * pi / q or 2 * pi / 20
local x, y = obj.pos2D.x, obj.pos2D.y
local pts = {}
for th=0, 2 * pi + q, q do
local pt_x, pt_y = x + r * cos(th), y - r * sin(th)
pts[#pts+1] = Vector({x = pt_x, y = pt_y})
end
for i=1, #pts do
local pt1, pt2 = pts[i], pts[i+1] or pts[1]
Draw.Line(pt1, pt2)
end
end
function OnDraw()
DrawCircle2D(myHero, 500, 100)
end