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
CollisionDetectionBehavior.intersectsOther has math that assumes the x and y for each entity are all relative to the top-left corner, which is the default Anchor. So, if you change an entity Anchor.Center, the hitbox won't actually match up with the collision detection (it'll be off by half the width in this case).
This bug is currently visible in the examples/standard_platformer because the Coins are Anchor.Center, how the next PR will change them to use the default anchor to avoid this issue.
The text was updated successfully, but these errors were encountered:
CollisionDetectionBehavior.intersectsOther
has math that assumes thex
andy
for each entity are all relative to the top-left corner, which is the defaultAnchor
. So, if you change an entityAnchor.Center
, the hitbox won't actually match up with the collision detection (it'll be off by half the width in this case).This bug is currently visible in the
examples/standard_platformer
because theCoin
s areAnchor.Center
, how the next PR will change them to use the default anchor to avoid this issue.The text was updated successfully, but these errors were encountered: