I’m curious if you got past this because I am having the same problem. I believe I am passing valid vectors to the drawPolygon function, but inside the function it is treating them as undefined. My code looks very similar to yours.
I’m curious if you got past this because I am having the same problem. I believe I am passing valid vectors to the drawPolygon function, but inside the function it is treating them as undefined. My code looks very similar to yours.