diff options
| author | Juan Linietsky | 2015-09-20 13:03:46 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2015-09-20 13:03:46 -0300 |
| commit | 83d9a692be648668b5b363f2424c619e15639843 (patch) | |
| tree | 387b30810994b282c795fdd011f53f0b7eb93ace /main | |
| parent | 3f9e5afe68df1e3b4bcf34a21468ed55a57a7973 (diff) | |
| parent | 889d21e0049a0e84d6d44db9b80193f93fd62f17 (diff) | |
| download | godot-83d9a692be648668b5b363f2424c619e15639843.tar.gz godot-83d9a692be648668b5b363f2424c619e15639843.tar.zst godot-83d9a692be648668b5b363f2424c619e15639843.zip | |
Ability to visually debug geometry visually:
-Visible 2D and 3D Shapes, Polygons, Tile collisions, etc.
-Visible Navmesh and Navpoly
-Visible collision contacts for 2D and 3D as a red point
-Customizable colors in project settings
Diffstat (limited to 'main')
| -rw-r--r-- | main/main.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/main/main.cpp b/main/main.cpp index 69e4dc38e..7006b4828 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -98,6 +98,7 @@ static bool init_maximized=false; static bool init_fullscreen=false; static bool init_use_custom_pos=false; static bool debug_collisions=false; +static bool debug_navigation=false; static Vector2 init_custom_pos; static int video_driver_idx=-1; static int audio_driver_idx=-1; @@ -517,6 +518,8 @@ Error Main::setup(const char *execpath,int argc, char *argv[],bool p_second_phas debug_mode="local"; } else if (I->get()=="-debugcol" || I->get()=="-dc") { debug_collisions=true; + } else if (I->get()=="-debugnav" || I->get()=="-dn") { + debug_navigation=true; } else if (I->get()=="-editor_scene") { if (I->next()) { @@ -1160,6 +1163,9 @@ bool Main::start() { if (debug_collisions) { sml->set_debug_collisions_hint(true); } + if (debug_navigation) { + sml->set_debug_navigation_hint(true); + } #ifdef TOOLS_ENABLED |
