Open sebas86 opened 7 years ago
Did you try setting game.input.scale
?
No, I did not. I suppose setting this property will break something in other places. For example button handles clicks and touches correctly without setting this property. Similar problem occurs in few other places, for example box2d debug render. I suppose it's problem with duplicated code - in many places transformation is performed by hand instead using shared code (matrix transformations).
I also checked source code and pointer.worldX use only camera position to transform pointer from camera to world space.
If world scale is not 1 or rotation is not 0 pointer world position will be invalid.
Sample code:
Temporary workaround: