ivansafrin/Polycode — Issue #58: LUA setTransform() is documented as taking Vector2s, but doesn't
Author: mcclure
Created: 2011-11-24 21:20:39+00:00
State: open

"local v = bullet:getPosition(); v.x = 100; v.y = 100; screen:setTransform(bullet, v, 0)"
This works. This:
"screen:setTransform(bullet, Vector2(100,100), 0)"
. . .does NOT work, it appears to have the effect of moving the bullet to screen position (0,0). Meanwhile THIS:
"screen:setTransform(bullet, Vector3(100,100,0), 0)"
. . .DOES work. However the documentation on the website clearly describes setTransform as taking a Vector2 not a Vector3.