User data for hitboxes #1901
ufrshubham
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
I'm not a big fan of user data that is untyped, but the thing with the |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I was wondering if it would be a good idea to add an
userData
property to hitboxes which then gets passed down to the collision callbacks. This would be similar to Fogre2d's user data.Current implementation provides
other
as the immediate parent casted to PositionComponent. This works for most cases, but when using CompositeHitbox, other turns out to beCompositeHitbox
instead of the actual parent.Beta Was this translation helpful? Give feedback.
All reactions