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

Expose up to date contact impulses #108

Open
rasmusgo opened this issue Dec 22, 2021 · 0 comments
Open

Expose up to date contact impulses #108

rasmusgo opened this issue Dec 22, 2021 · 0 comments
Labels
A-Integration very bevy specific C-Enhancement New feature or request D-Medium P-Medium S-not-started Work has not started

Comments

@rasmusgo
Copy link

I want to play audio in response to collisions. There are already ways to respond to collisions but none of them contains up to date impulses because the logic happens between collision detection and collision response.

The details are in step_generic in physics_pipeline.rs. It runs detect_collisions towards the end of each substep after velocities and positions have been updated. This will erase the information about impulses for all contacts that are no longer touching. I think it would make sense to add a new event or a hook to publish the correct impulses before calling detect_collisions.

@Vrixyz Vrixyz added D-Medium P-Medium S-not-started Work has not started A-Integration very bevy specific C-Enhancement New feature or request labels May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Integration very bevy specific C-Enhancement New feature or request D-Medium P-Medium S-not-started Work has not started
Projects
None yet
Development

No branches or pull requests

2 participants