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
Tangentially (this could be its own issue but I figured i'd throw it in here), I wonder if lifecycle methods like onXYZ() on actors should always match the event payload. In other words 1 param as the event. Sometimes it's a pain when you want to move an event handler as a .on() handler to/from an Actor lifecycle method because one is multiple params whereas the other is an event object.
The text was updated successfully, but these errors were encountered:
eonarheim
added
the
bug
This issue describes undesirable, incorrect, or unexpected behavior
label
Jun 20, 2024
I agree, I think keeping them as the Collider would be less confusing
Tangentially (this could be its own issue but I figured i'd throw it in here), I wonder if lifecycle methods like onXYZ() on actors should always match the event payload. In other words 1 param as the event. Sometimes it's a pain when you want to move an event handler as a .on() handler to/from an Actor lifecycle method because one is multiple params whereas the other is an event object.
It definitely feel like it should match... I'd support changes to make this so
The value of
other
in the precollision event is either a collider or the actor, depending on where you're listening to the event from.Actor's
onPreCollisionResolve
is a colliderColliderComponent event is the entity, which is wiring from what the System emits
I would suggest keeping them always as colliders.
Tangentially (this could be its own issue but I figured i'd throw it in here), I wonder if lifecycle methods like
onXYZ()
on actors should always match the event payload. In other words 1 param as the event. Sometimes it's a pain when you want to move an event handler as a.on()
handler to/from an Actor lifecycle method because one is multiple params whereas the other is an event object.The text was updated successfully, but these errors were encountered: