NavigationWorld: add navmesh pathfinding with Recast & Detour#899
Open
Tron-xR wants to merge 1 commit into
Open
NavigationWorld: add navmesh pathfinding with Recast & Detour#899Tron-xR wants to merge 1 commit into
Tron-xR wants to merge 1 commit into
Conversation
Add full navmesh support to the engine: 3rdparty: - Vendor Recast & Detour (MIT license) for navmesh generation and pathfinding - Vendor DetourCrowd for agent management and crowd simulation Build system (scripts/): - recastnavigation.lua: Genie build script for Recast/Detour/DetourCrowd - genie.lua: register recastnavigation build target - crown.lua: add recastnavigation includes and link dependency NavigationWorld (src/world/): - navigation_world.h/cpp: new sub-world managing navmesh loading, pathfinding (find_path, nearest_point, ray_cast, random_point), agent creation/destruction/target/state, and crowd simulation - Integrated into World: created/destroyed/updated each frame - navigation_agent component routed through create_components Navmesh resource (src/resource/): - navmesh_resource.h/cpp: new .navmesh resource type with data compiler - data_compiler.cpp: register navmesh compiler + RESOURCE_TYPE extern - resource/types.h: add RESOURCE_TYPE_NAVMESH / RESOURCE_VERSION_NAVMESH - device.cpp: register navmesh runtime resource type (simple_resource) Lua API (src/lua/): - lua_stack.h/inl: add NavigationWorld getter with marker check - lua_api.cpp: expose NavigationWorld methods (find_path, nearest_point, ray_cast, random_point, agent_create/destroy/set_target/position/velocity) - World:navigation_world() getter in Lua
Collaborator
|
This PR does not even compile. If it is a work in progress, you should mark it as a draft. If you plan to work seriously on this, it should at least include a dedicated example in the |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add full navmesh support to the engine:
3rdparty:
Build system (scripts/):
NavigationWorld (src/world/):
Navmesh resource (src/resource/):
Lua API (src/lua/):