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
The default Physics.Arcade.Body.hitTest calls Geom.Circle.Contains to do hit testing. However, Contains expects a circle object that uses x, y as the center of the circle. The Body uses x, y as the top, left of the body so the hitTest is off.
Version
Description
The default Physics.Arcade.Body.hitTest calls Geom.Circle.Contains to do hit testing. However, Contains expects a circle object that uses x, y as the center of the circle. The Body uses x, y as the top, left of the body so the hitTest is off.
Example Test Code
https://codepen.io/funnisimo/pen/dybKPjG
Additional Information
Also, setOffset needs to call updateCenter
The text was updated successfully, but these errors were encountered: