libgdx Viewports - Why when I use FitViewport the touch input x and y is not accurate?

后端 未结 1 1532
猫巷女王i
猫巷女王i 2021-01-14 19:50

libgdx Viewports - Why when I use FitViewport the touch input x and y is not accurate?

相关标签:
1条回答
  • 2021-01-14 20:04

    Use viewport.unproject() instead of camera.unproject() so the cropping of the FitViewport is taken into acount.

    0 讨论(0)
提交回复
热议问题