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

Only warn about 'overlapping at spawn' for dynamic bodies #491

Closed RJ closed 3 months ago

RJ commented 3 months ago

Objective

When spawning lots of overlapping static colliders (eg: walls) i see a lot of "X and Y are overlapping at spawn, which can result in explosive behavior".

Explosive behaviour is only a concern for dynamic bodies.

Solution

Only show the warning if at least one of the bodies is dynamic.


Changelog

RJ commented 3 months ago

can't reproduce my issue with the warning appearing re: static rigidbodies. i definitely was plagued with loads of warnings about my static walls at some point, but it's possible i'd configured something wrong.

i think it's still a worthwhile patch to prevent warnings when kinematic bodies overlap though