summaryrefslogtreecommitdiffstats
path: root/servers/physics_2d/godot_broad_phase_2d_bvh.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Move Godot Physics 2D into a module; add dummy 2D physics serverRicardo Buring2024-09-231-123/+0
| | | | | | | | | | | | If the module is enabled (default), 2D physics works as it did before. If the module is disabled and no other 2D physics server is registered (via a module or GDExtension), then we fall back to a dummy implementation which effectively disables 2D physics functionality (and a warning is printed). The dummy 2D physics server can also be selected explicitly, in which case no warning is printed.
* [Servers] Replace `ERR_FAIL_COND` with `ERR_FAIL_NULL` where applicableA Thousand Ships2023-09-251-1/+1
|
* One Copyright Update to rule them allRémi Verschelde2023-01-051-29/+29
| | | | | | | | | | | | | | | | | | | | As many open source projects have started doing it, we're removing the current year from the copyright notice, so that we don't need to bump it every year. It seems like only the first year of publication is technically relevant for copyright notices, and even that seems to be something that many companies stopped listing altogether (in a version controlled codebase, the commits are a much better source of date of publication than a hardcoded copyright statement). We also now list Godot Engine contributors first as we're collectively the current maintainers of the project, and we clarify that the "exclusive" copyright of the co-founders covers the timespan before opensourcing (their further contributions are included as part of Godot Engine contributors). Also fixed "cf." Frenchism - it's meant as "refer to / see".
* Fix some issues found by cppcheck.bruvzg2022-04-061-2/+2
|
* Add protective checks for invalid handle use in BVHlawnjelly2022-03-231-0/+6
| | | | | | Adds DEV_ASSERTS that will halt at runtime if the BVH is misused with invalid IDs, and adds ERR_FAIL macros to prevent calling with invalid IDs. Any such misuse is a bug in the physics, but this should flag any errors quickly.
* [4.x] BVH - Fix area-area collision regressionlawnjelly2022-03-061-2/+2
| | | | Minimal approach to fixing regression whereby static areas where not detect dynamic areas.
* BVH - Sync BVH with 3.xlawnjelly2022-02-041-6/+10
| | | | | Templated mask checks and generic NUM_TREES Fix leaking leaves
* Update copyright statements to 2022Rémi Verschelde2022-01-031-2/+2
| | | | Happy new year to the wonderful Godot community!
* Rename Godot Physics classes from *SW to Godot*PouleyKetchoupp2021-10-181-0/+113
Also moved MT physics server wrappers to the main servers folder, since they don't have to be implementation specific.