-
Beta Was this translation helpful? Give feedback.
Answered by
spydon
Aug 16, 2022
Replies: 1 comment 8 replies
-
The hitboxes are indeed hollow, and we don't have any out of the box support for checking those type of collisions. |
Beta Was this translation helpful? Give feedback.
8 replies
Answer selected by
spydon
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The hitboxes are indeed hollow, and we don't have any out of the box support for checking those type of collisions.
What you can do is to check if the
aabb
of the hitbox is completely contained within the other hitbox'saabb
withcontainsAabb2
, this will only give a rough estimation of whether there is a collision though, but it would work for most cases.https://api.flutter.dev/flutter/vector_math/Aabb2/containsAabb2.html