You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
love.graphics.inverseTransformPoint and love.graphics.transformPoint do not work as expected. After performing the transformations using (in my case) love.graphics.translate, using the previous 2 functions results in both returning (0, 0) in any case.
What was Expected?
Functions should return coordinates with current transformations applied
Code to Reproduce
-- This should draw a rectangle at screen position 100, 100 even after setting a coordinates translationfunctionlove.load(args)
cameraX=0cameraVel=100endfunctionlove.update(dt)
cameraX=cameraX- (cameraVel*dt)
endfunctionlove.gamepadpressed(joystick, button)
ifbutton=="start" thenlove.event.quit()
endendfunctionlove.draw(screen)
love.graphics.push()
love.graphics.origin()
love.graphics.translate(cameraX, 0)
ifscreen~="bottom" thenlocalx, yx, y=love.graphics.inverseTransformPoint(100, 100)
love.graphics.rectangle("fill", x, y, 100, 50)
endlove.graphics.pop()
end
Console
Nintendo 3DS
Firmware Version(s)
11.17.0-50U
Custom Firmware Version
13.1.2
Execution Method
Homebrew Menu
Code of Conduct
I have read the Code of Conduct and agree to these terms
The text was updated successfully, but these errors were encountered:
Software Version
3.0.1
What Happened?
love.graphics.inverseTransformPoint and love.graphics.transformPoint do not work as expected. After performing the transformations using (in my case) love.graphics.translate, using the previous 2 functions results in both returning (0, 0) in any case.
What was Expected?
Functions should return coordinates with current transformations applied
Code to Reproduce
Console
Nintendo 3DS
Firmware Version(s)
11.17.0-50U
Custom Firmware Version
13.1.2
Execution Method
Homebrew Menu
Code of Conduct
The text was updated successfully, but these errors were encountered: