Repository navigation
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 |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I was wondering if it would be a good idea to add an
userDataproperty to hitboxes which then gets passed down to the collision callbacks. This would be similar to Fogre2d's user data.Current implementation provides
otheras the immediate parent casted to PositionComponent. This works for most cases, but when using CompositeHitbox, other turns out to beCompositeHitboxinstead of the actual parent.All reactions