Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Entity events support #361

Open
musjj opened this issue May 13, 2024 · 0 comments
Open

Entity events support #361

musjj opened this issue May 13, 2024 · 0 comments
Labels
collision detection Relates to the broad phase, narrow phase or collision APIs enhancement New feature or request

Comments

@musjj
Copy link

musjj commented May 13, 2024

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 */ }),
    ));
@Jondolf Jondolf added enhancement New feature or request collision detection Relates to the broad phase, narrow phase or collision APIs labels May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
collision detection Relates to the broad phase, narrow phase or collision APIs enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants