`newPolar` is not callable

,

I have the following line of code:

local v = playdate.geometry.vector2D.newPolar(1, 90)

It produces the following error:

Ball.lua:128: field 'newPolar' is not callable (a nil value)

I'm referencing the latest docs which suggest it should work, so as far as I can tell it's just missing. Is this not actually available in the API, or am I doing something silly?

Note that this is not a blocker — it's easy enough to just compute the appropriate X and Y values and use vector2D.new — but I just wanted to confirm the expected behavior.

Whoops. Guess who downloaded the latest SDK update to 1.13.1 the other day and then forgot to actually install it. I'll close out this thread.

2 Likes