Open mattjennings opened 2 months ago
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
cool, I've split that out into a separate issue then! https://github.com/excaliburjs/Excalibur/issues/3106
This issue hasn't had any recent activity lately and is being marked as stale automatically.
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.