Jondolf / avian

ECS-driven 2D and 3D physics engine for the Bevy game engine.
https://crates.io/crates/avian3d
Apache License 2.0
1.55k stars 120 forks source link

Wrongfully warning about explosive behavior #535

Closed lenny991 closed 1 month ago

lenny991 commented 1 month ago

Hey, I already created a discussion about this but I don't think anyone reads those so here's the issue.

https://github.com/Jondolf/avian/discussions/528 Please read this for more context^

This (image below) is being printed out 'wrongfully' when two Rigidbody::Statics are overlapping on spawn. This will not create explosive behavior, as the rigidbodies are static and won't move.
image I propose that this could be fixed by checking if both bodies are static before printing the warning, because two static bodies cannot have explosive behavior, again, as they do not move. This fix would be enough for my purposes at least, because this issue does not extend to anything further than my console being stuffed full of warnings which interferes with debugging.

Thanks!

lenny991 commented 1 month ago

Ok this is totally my bad I should've done a search first. This has just been fixed, and I expected this to not have been found yet as I haven't gotten the fixes yet. I hope I didn't notify anyone for nothing. Again, my mistake.