summaryrefslogtreecommitdiffstats
path: root/modules/gdnavigation
Commit message (Collapse)AuthorAgeFilesLines
* Replace NULL with nullptrlupoDharkael2020-04-028-83/+83
|
* Merge pull request #37436 from akien-mga/doc-node-renamesRémi Verschelde2020-03-301-1/+1
|\ | | | | doc: Update classref with node renames
| * doc: Update classref with node renamesRémi Verschelde2020-03-301-1/+1
| | | | | | | | A few extra renames for classes which were missed in last week's PRs.
* | SCons: Format buildsystem files with psf/blackRémi Verschelde2020-03-302-17/+18
|/ | | | | | | | | | | | | | | | | | | | | Configured for a max line length of 120 characters. psf/black is very opinionated and purposely doesn't leave much room for configuration. The output is mostly OK so that should be fine for us, but some things worth noting: - Manually wrapped strings will be reflowed, so by using a line length of 120 for the sake of preserving readability for our long command calls, it also means that some manually wrapped strings are back on the same line and should be manually merged again. - Code generators using string concatenation extensively look awful, since black puts each operand on a single line. We need to refactor these generators to use more pythonic string formatting, for which many options are available (`%`, `format` or f-strings). - CI checks and a pre-commit hook will be added to ensure that future buildsystem changes are well-formatted.
* Renaming of servers for coherency.Juan Linietsky2020-03-273-6/+6
| | | | | | | | | | VisualServer -> RenderingServer PhysicsServer -> PhysicsServer3D Physics2DServer -> PhysicsServer2D NavigationServer -> NavigationServer3D Navigation2DServer -> NavigationServer2D Also renamed corresponding files.
* Renamed 2D and 3D nodes to make their types explicitJuan Linietsky2020-03-275-38/+38
| | | | Fixes #30736.
* Popups are now windows also (broken!)Juan Linietsky2020-03-261-2/+2
|
* Working multiple window support, including editorJuan Linietsky2020-03-261-1/+1
|
* Adding missing include guards to header files identified by LGTM.Rajat Goswami2020-03-231-0/+5
| | | | This addresses the issue godotengine/godot#37143
* Fix various typosluz.paz2020-03-112-3/+3
| | | Found via `codespell`
* Complete NavigationMeshInstance renamelupoDharkael2020-03-082-4/+4
|
* Added error to notify that the Navigation triangle merging failed due to ↵Andrea Catania2020-03-061-0/+1
| | | | incorrect parameter.
* Signals: Port connect calls to use callable_mpRémi Verschelde2020-02-281-5/+2
| | | | | | | | | Remove now unnecessary bindings of signal callbacks in the public API. There might be some false positives that need rebinding if they were meant to be public. No regular expressions were harmed in the making of this commit. (Nah, just kidding.)
* Merge pull request #36388 from AndreaCatania/some_renamesRémi Verschelde2020-02-284-8/+8
|\ | | | | Rename Navigation{Mesh,Polygon}Instance and PlaneShape for clarity
| * Renamed PlaneShape to WorldMarginShapeAndrea Catania2020-02-271-1/+1
| |
| * Renamed NavigationMeshInstance to NavigationRegionAndrea Catania2020-02-273-7/+7
| |
* | Reimplement Mutex with C++'s <mutex>Pedro J. Estébanez2020-02-262-24/+13
|/ | | | | | | | | | | | | | | | Main: - It's now implemented thanks to `<mutex>`. No more platform-specific implementations. - `BinaryMutex` (non-recursive) is added, as an alternative for special cases. - Doesn't need allocation/deallocation anymore. It can live in the stack and be part of other classes. - Because of that, it's methods are now `const` and the inner mutex is `mutable` so it can be easily used in `const` contexts. - A no-op implementation is provided if `NO_THREADS` is defined. No more need to add `#ifdef NO_THREADS` just for this. - `MutexLock` now takes a reference. At this point the cases of null `Mutex`es are rare. If you ever need that, just don't use `MutexLock`. - Thread-safe utilities are therefore simpler now. Misc.: - `ScopedMutexLock` is dropped and replaced by `MutexLock`, because they were pretty much the same. - Every case of lock, do-something, unlock is replaced by `MutexLock` (complex cases where it's not straightfoward are kept as as explicit lock and unlock). - `ShaderRD` contained an `std::mutex`, which has been replaced by `Mutex`.
* Merge pull request #36551 from AndreaCatania/navigation_destruction_flushRémi Verschelde2020-02-262-8/+19
|\ | | | | Flushes commands just before the navigation server is destroyed
| * Flushes commands just before the navigation server is destroyedAndrea Catania2020-02-262-8/+19
| |
* | Fixed remove region method.Andrea Catania2020-02-241-2/+5
|/
* Reworked signal connection system, added support for Callable and Signal ↵Juan Linietsky2020-02-202-3/+3
| | | | objects and made them default.
* Added utility functions to the new NavigationServer:Andrea Catania2020-02-184-4/+179
| | | | | | | - Vector3 get_closest_point_to_segment(const Vector3 &p_from, const Vector3 &p_to, const bool &p_use_collision = false); - Vector3 get_closest_point(const Vector3 &p_point); - Vector3 get_closest_point_normal(const Vector3 &p_point); - Object *get_closest_point_owner(const Vector3 &p_point);
* PoolVector is gone, replaced by VectorJuan Linietsky2020-02-183-12/+12
| | | | | Typed `PoolTypeArray` types are now renamed `PackedTypeArray` and are sugar for `Vector<Type>`.
* Fixes memory leaks in GdNavigationServer and RasterizerSceneHighEndRDHaoyu Qiu2020-02-151-3/+6
|
* ObjectID converted to a structure, fixes many bugs where used incorrectly as ↵Juan Linietsky2020-02-122-5/+5
| | | | 32 bits.
* Vulkan: Move thirdparty code out of drivers, style fixesRémi Verschelde2020-02-1110-16/+16
| | | | | | | - `vk_enum_string_helper.h` is a generated file taken from the SDK (Vulkan-ValidationLayers). - `vk_mem_alloc.h` is a library from GPUOpen: https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator
* Refactored RID/RID_Owner to always use O(1) allocation.Juan Linietsky2020-02-113-33/+35
| | | | | * Implements a growing chunked allocator * Removed redudant methods get and getptr, only getornull is supported now.
* - Integrated NavigationServer and Navigation2DServer.Andrea Catania2020-02-1018-0/+3095
- Added Navigation Agents and Obstacles. - Integrated Collision Avoidance. This work has been kindly sponsored by IMVU.