You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 19:11:41 +00:00
Backport NavigationServer with RVO2 to 3.x
Change the entire navigation system. Remove editor prefix from nav mesh generator class. It is now used for baking at runtime as well. Navigation supports obstacle avoidance now with the RVO2 library. Nav system will also automatically link all nav meshes together to form one overall complete nav map.
This commit is contained in:
committed by
Rémi Verschelde
parent
571e05d3d3
commit
09bc9eb101
@@ -64,6 +64,8 @@
|
||||
#include "scene/gui/texture_progress.h"
|
||||
#include "scene/gui/tool_button.h"
|
||||
#include "scene/resources/packed_scene.h"
|
||||
#include "servers/navigation_2d_server.h"
|
||||
#include "servers/navigation_server.h"
|
||||
#include "servers/physics_2d_server.h"
|
||||
|
||||
#include "editor/audio_stream_preview.h"
|
||||
@@ -5743,6 +5745,8 @@ EditorNode::EditorNode() {
|
||||
VisualServer::get_singleton()->textures_keep_original(true);
|
||||
VisualServer::get_singleton()->set_debug_generate_wireframes(true);
|
||||
|
||||
NavigationServer::get_singleton()->set_active(false); // no nav by default if editor
|
||||
|
||||
PhysicsServer::get_singleton()->set_active(false); // no physics by default if editor
|
||||
Physics2DServer::get_singleton()->set_active(false); // no physics by default if editor
|
||||
ScriptServer::set_scripting_enabled(false); // no scripting by default if editor
|
||||
|
||||
Reference in New Issue
Block a user