bevy_xpbd
bevy_xpbd copied to clipboard
Entity events support
With all the talk about bevy_eventlistener getting upstreamed, it would be nice to have support for entity events in this library. This will greatly improve ergonomics for handling collisions, like:
commands
.spawn((
Name::new("Goblin"),
HitPoints(50),
On::<Collision>::run(|listener: Listener<Collision>| { /* handle collision */ }),
));