summaryrefslogtreecommitdiffstats
path: root/core/math/bvh.h
Commit message (Collapse)AuthorAgeFilesLines
* Enforce template syntax `typename` over `class`Thaddeus Crews2024-03-071-1/+1
|
* BVH - fix lockguards for multithread modelawnjelly2023-02-201-6/+2
| | | | | | Due to a lack of variable name, the BVH lock guards lifetimes previously did not cover the whole function call. This is fixed, and the warning message for contention is removed as multithread mode seems to be desired in production in 4.x.
* Merge pull request #72168 from RandomShaper/sensible_lock_returnRémi Verschelde2023-01-271-1/+1
|\ | | | | | | Booleanize various sync primitives' wait & locking methods
| * Booleanize various sync primitives' wait & locking methodsPedro J. Estébanez2023-01-271-1/+1
| |
* | Use range iterators in LocalVector loopskobewi2023-01-211-6/+2
|/
* 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".
* Fixup BVH debugging statementsRicardo Buring2022-07-251-1/+1
|
* Zero initialize all pointer class and struct membersRémi Verschelde2022-04-041-17/+10
| | | | | This prevents the pitfall of UB when checking if they have been assigned something valid by comparing to nullptr.
* Add protective checks for invalid handle use in BVHlawnjelly2022-03-231-7/+9
| | | | | | 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.
* BVH - Sync BVH with 3.xlawnjelly2022-02-041-68/+196
| | | | | 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 `remove()` to `remove_at()` when removing by indexLightning_A2021-11-231-1/+1
|
* Replace references to VisualServer in code comments with RenderingServerHugo Locurcio2021-10-071-1/+1
| | | | VisualServer no longer exists in the `master` branch.
* Dynamic BVH broadphase in 2D & 3D Godot PhysicsPouleyKetchoupp2021-05-101-0/+695
Port lawnjelly's dynamic BVH implementation from 3.x to be used in both 2D and 3D broadphases. Removed alternative broadphase implementations which are not meant to be used anymore since they are much slower. Includes changes in Rect2, Vector2, Vector3 that help with the template implementation of the dynamic BVH by uniformizing the interface between 2D and 3D math. Co-authored-by: lawnjelly <lawnjelly@gmail.com>