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
Ah yeah not sure how I missed that one. This one can be closed. I did create a work around and believe that the position of the actual hit area is getting scaled. If you remove the scale during the hit test it works as expected.
Thank you for submitting this issue. We have fixed this and the fix has been pushed to the master branch. It will be part of the next release. If you get time to build and test it for yourself we would appreciate that.
phaser@3.60.0-beta.17
windows 10
Description
Adding an image with a scale and custom hit area generates a hit area offset from the expected hit area shown with enableDebug.
In the example the debug rect is red and the actual hit area is surrounded by a green rect.
I believe the position values are getting scaled along with the size of the sprite for the hit detection.
A workaround (included in commented code below) is to use a custom callback and remove the scale from the position values during the check.
Example Test Code
The text was updated successfully, but these errors were encountered: