class_navigationserver3d.rst 207 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417
  1. :github_url: hide
  2. .. DO NOT EDIT THIS FILE!!!
  3. .. Generated automatically from Godot engine sources.
  4. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/master/doc/classes/NavigationServer3D.xml.
  6. .. _class_NavigationServer3D:
  7. NavigationServer3D
  8. ==================
  9. **Experimental:** This class may be changed or removed in future versions.
  10. **Inherits:** :ref:`Object<class_Object>`
  11. A server interface for low-level 3D navigation access.
  12. .. rst-class:: classref-introduction-group
  13. Description
  14. -----------
  15. NavigationServer3D is the server that handles navigation maps, regions and agents. It does not handle A\* navigation from :ref:`AStar3D<class_AStar3D>`.
  16. Maps are divided into regions, which are composed of navigation meshes. Together, they define the navigable areas in the 3D world.
  17. \ **Note:** Most **NavigationServer3D** changes take effect after the next physics frame and not immediately. This includes all changes made to maps, regions or agents by navigation-related nodes in the scene tree or made through scripts.
  18. For two regions to be connected to each other, they must share a similar edge. An edge is considered connected to another if both of its two vertices are at a distance less than ``edge_connection_margin`` to the respective other edge's vertex.
  19. You may assign navigation layers to regions with :ref:`region_set_navigation_layers()<class_NavigationServer3D_method_region_set_navigation_layers>`, which then can be checked upon when requesting a path with :ref:`map_get_path()<class_NavigationServer3D_method_map_get_path>`. This can be used to allow or deny certain areas for some objects.
  20. To use the collision avoidance system, you may use agents. You can set an agent's target velocity, then the servers will emit a callback with a modified velocity.
  21. \ **Note:** The collision avoidance system ignores regions. Using the modified velocity directly may move an agent outside of the traversable area. This is a limitation of the collision avoidance system, any more complex situation may require the use of the physics engine.
  22. This server keeps tracks of any call and executes them during the sync phase. This means that you can request any change to the map, using any thread, without worrying.
  23. .. rst-class:: classref-introduction-group
  24. Tutorials
  25. ---------
  26. - :doc:`Using NavigationServer <../tutorials/navigation/navigation_using_navigationservers>`
  27. - `3D Navigation Demo <https://godotengine.org/asset-library/asset/2743>`__
  28. .. rst-class:: classref-reftable-group
  29. Methods
  30. -------
  31. .. table::
  32. :widths: auto
  33. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  34. | :ref:`RID<class_RID>` | :ref:`agent_create<class_NavigationServer3D_method_agent_create>`\ (\ ) |
  35. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  36. | :ref:`bool<class_bool>` | :ref:`agent_get_avoidance_enabled<class_NavigationServer3D_method_agent_get_avoidance_enabled>`\ (\ agent\: :ref:`RID<class_RID>`\ ) |const| |
  37. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  38. | :ref:`int<class_int>` | :ref:`agent_get_avoidance_layers<class_NavigationServer3D_method_agent_get_avoidance_layers>`\ (\ agent\: :ref:`RID<class_RID>`\ ) |const| |
  39. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  40. | :ref:`int<class_int>` | :ref:`agent_get_avoidance_mask<class_NavigationServer3D_method_agent_get_avoidance_mask>`\ (\ agent\: :ref:`RID<class_RID>`\ ) |const| |
  41. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  42. | :ref:`float<class_float>` | :ref:`agent_get_avoidance_priority<class_NavigationServer3D_method_agent_get_avoidance_priority>`\ (\ agent\: :ref:`RID<class_RID>`\ ) |const| |
  43. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  44. | :ref:`float<class_float>` | :ref:`agent_get_height<class_NavigationServer3D_method_agent_get_height>`\ (\ agent\: :ref:`RID<class_RID>`\ ) |const| |
  45. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  46. | :ref:`RID<class_RID>` | :ref:`agent_get_map<class_NavigationServer3D_method_agent_get_map>`\ (\ agent\: :ref:`RID<class_RID>`\ ) |const| |
  47. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  48. | :ref:`int<class_int>` | :ref:`agent_get_max_neighbors<class_NavigationServer3D_method_agent_get_max_neighbors>`\ (\ agent\: :ref:`RID<class_RID>`\ ) |const| |
  49. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  50. | :ref:`float<class_float>` | :ref:`agent_get_max_speed<class_NavigationServer3D_method_agent_get_max_speed>`\ (\ agent\: :ref:`RID<class_RID>`\ ) |const| |
  51. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  52. | :ref:`float<class_float>` | :ref:`agent_get_neighbor_distance<class_NavigationServer3D_method_agent_get_neighbor_distance>`\ (\ agent\: :ref:`RID<class_RID>`\ ) |const| |
  53. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  54. | :ref:`bool<class_bool>` | :ref:`agent_get_paused<class_NavigationServer3D_method_agent_get_paused>`\ (\ agent\: :ref:`RID<class_RID>`\ ) |const| |
  55. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  56. | :ref:`Vector3<class_Vector3>` | :ref:`agent_get_position<class_NavigationServer3D_method_agent_get_position>`\ (\ agent\: :ref:`RID<class_RID>`\ ) |const| |
  57. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  58. | :ref:`float<class_float>` | :ref:`agent_get_radius<class_NavigationServer3D_method_agent_get_radius>`\ (\ agent\: :ref:`RID<class_RID>`\ ) |const| |
  59. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  60. | :ref:`float<class_float>` | :ref:`agent_get_time_horizon_agents<class_NavigationServer3D_method_agent_get_time_horizon_agents>`\ (\ agent\: :ref:`RID<class_RID>`\ ) |const| |
  61. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  62. | :ref:`float<class_float>` | :ref:`agent_get_time_horizon_obstacles<class_NavigationServer3D_method_agent_get_time_horizon_obstacles>`\ (\ agent\: :ref:`RID<class_RID>`\ ) |const| |
  63. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  64. | :ref:`bool<class_bool>` | :ref:`agent_get_use_3d_avoidance<class_NavigationServer3D_method_agent_get_use_3d_avoidance>`\ (\ agent\: :ref:`RID<class_RID>`\ ) |const| |
  65. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  66. | :ref:`Vector3<class_Vector3>` | :ref:`agent_get_velocity<class_NavigationServer3D_method_agent_get_velocity>`\ (\ agent\: :ref:`RID<class_RID>`\ ) |const| |
  67. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  68. | :ref:`bool<class_bool>` | :ref:`agent_has_avoidance_callback<class_NavigationServer3D_method_agent_has_avoidance_callback>`\ (\ agent\: :ref:`RID<class_RID>`\ ) |const| |
  69. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  70. | :ref:`bool<class_bool>` | :ref:`agent_is_map_changed<class_NavigationServer3D_method_agent_is_map_changed>`\ (\ agent\: :ref:`RID<class_RID>`\ ) |const| |
  71. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  72. | |void| | :ref:`agent_set_avoidance_callback<class_NavigationServer3D_method_agent_set_avoidance_callback>`\ (\ agent\: :ref:`RID<class_RID>`, callback\: :ref:`Callable<class_Callable>`\ ) |
  73. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  74. | |void| | :ref:`agent_set_avoidance_enabled<class_NavigationServer3D_method_agent_set_avoidance_enabled>`\ (\ agent\: :ref:`RID<class_RID>`, enabled\: :ref:`bool<class_bool>`\ ) |
  75. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  76. | |void| | :ref:`agent_set_avoidance_layers<class_NavigationServer3D_method_agent_set_avoidance_layers>`\ (\ agent\: :ref:`RID<class_RID>`, layers\: :ref:`int<class_int>`\ ) |
  77. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  78. | |void| | :ref:`agent_set_avoidance_mask<class_NavigationServer3D_method_agent_set_avoidance_mask>`\ (\ agent\: :ref:`RID<class_RID>`, mask\: :ref:`int<class_int>`\ ) |
  79. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  80. | |void| | :ref:`agent_set_avoidance_priority<class_NavigationServer3D_method_agent_set_avoidance_priority>`\ (\ agent\: :ref:`RID<class_RID>`, priority\: :ref:`float<class_float>`\ ) |
  81. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  82. | |void| | :ref:`agent_set_height<class_NavigationServer3D_method_agent_set_height>`\ (\ agent\: :ref:`RID<class_RID>`, height\: :ref:`float<class_float>`\ ) |
  83. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  84. | |void| | :ref:`agent_set_map<class_NavigationServer3D_method_agent_set_map>`\ (\ agent\: :ref:`RID<class_RID>`, map\: :ref:`RID<class_RID>`\ ) |
  85. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  86. | |void| | :ref:`agent_set_max_neighbors<class_NavigationServer3D_method_agent_set_max_neighbors>`\ (\ agent\: :ref:`RID<class_RID>`, count\: :ref:`int<class_int>`\ ) |
  87. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  88. | |void| | :ref:`agent_set_max_speed<class_NavigationServer3D_method_agent_set_max_speed>`\ (\ agent\: :ref:`RID<class_RID>`, max_speed\: :ref:`float<class_float>`\ ) |
  89. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  90. | |void| | :ref:`agent_set_neighbor_distance<class_NavigationServer3D_method_agent_set_neighbor_distance>`\ (\ agent\: :ref:`RID<class_RID>`, distance\: :ref:`float<class_float>`\ ) |
  91. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  92. | |void| | :ref:`agent_set_paused<class_NavigationServer3D_method_agent_set_paused>`\ (\ agent\: :ref:`RID<class_RID>`, paused\: :ref:`bool<class_bool>`\ ) |
  93. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  94. | |void| | :ref:`agent_set_position<class_NavigationServer3D_method_agent_set_position>`\ (\ agent\: :ref:`RID<class_RID>`, position\: :ref:`Vector3<class_Vector3>`\ ) |
  95. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  96. | |void| | :ref:`agent_set_radius<class_NavigationServer3D_method_agent_set_radius>`\ (\ agent\: :ref:`RID<class_RID>`, radius\: :ref:`float<class_float>`\ ) |
  97. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  98. | |void| | :ref:`agent_set_time_horizon_agents<class_NavigationServer3D_method_agent_set_time_horizon_agents>`\ (\ agent\: :ref:`RID<class_RID>`, time_horizon\: :ref:`float<class_float>`\ ) |
  99. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  100. | |void| | :ref:`agent_set_time_horizon_obstacles<class_NavigationServer3D_method_agent_set_time_horizon_obstacles>`\ (\ agent\: :ref:`RID<class_RID>`, time_horizon\: :ref:`float<class_float>`\ ) |
  101. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  102. | |void| | :ref:`agent_set_use_3d_avoidance<class_NavigationServer3D_method_agent_set_use_3d_avoidance>`\ (\ agent\: :ref:`RID<class_RID>`, enabled\: :ref:`bool<class_bool>`\ ) |
  103. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  104. | |void| | :ref:`agent_set_velocity<class_NavigationServer3D_method_agent_set_velocity>`\ (\ agent\: :ref:`RID<class_RID>`, velocity\: :ref:`Vector3<class_Vector3>`\ ) |
  105. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  106. | |void| | :ref:`agent_set_velocity_forced<class_NavigationServer3D_method_agent_set_velocity_forced>`\ (\ agent\: :ref:`RID<class_RID>`, velocity\: :ref:`Vector3<class_Vector3>`\ ) |
  107. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  108. | |void| | :ref:`bake_from_source_geometry_data<class_NavigationServer3D_method_bake_from_source_geometry_data>`\ (\ navigation_mesh\: :ref:`NavigationMesh<class_NavigationMesh>`, source_geometry_data\: :ref:`NavigationMeshSourceGeometryData3D<class_NavigationMeshSourceGeometryData3D>`, callback\: :ref:`Callable<class_Callable>` = Callable()\ ) |
  109. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  110. | |void| | :ref:`bake_from_source_geometry_data_async<class_NavigationServer3D_method_bake_from_source_geometry_data_async>`\ (\ navigation_mesh\: :ref:`NavigationMesh<class_NavigationMesh>`, source_geometry_data\: :ref:`NavigationMeshSourceGeometryData3D<class_NavigationMeshSourceGeometryData3D>`, callback\: :ref:`Callable<class_Callable>` = Callable()\ ) |
  111. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  112. | |void| | :ref:`free_rid<class_NavigationServer3D_method_free_rid>`\ (\ rid\: :ref:`RID<class_RID>`\ ) |
  113. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  114. | :ref:`bool<class_bool>` | :ref:`get_debug_enabled<class_NavigationServer3D_method_get_debug_enabled>`\ (\ ) |const| |
  115. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  116. | :ref:`Array<class_Array>`\[:ref:`RID<class_RID>`\] | :ref:`get_maps<class_NavigationServer3D_method_get_maps>`\ (\ ) |const| |
  117. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  118. | :ref:`int<class_int>` | :ref:`get_process_info<class_NavigationServer3D_method_get_process_info>`\ (\ process_info\: :ref:`ProcessInfo<enum_NavigationServer3D_ProcessInfo>`\ ) |const| |
  119. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  120. | :ref:`bool<class_bool>` | :ref:`is_baking_navigation_mesh<class_NavigationServer3D_method_is_baking_navigation_mesh>`\ (\ navigation_mesh\: :ref:`NavigationMesh<class_NavigationMesh>`\ ) |const| |
  121. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  122. | :ref:`RID<class_RID>` | :ref:`link_create<class_NavigationServer3D_method_link_create>`\ (\ ) |
  123. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  124. | :ref:`bool<class_bool>` | :ref:`link_get_enabled<class_NavigationServer3D_method_link_get_enabled>`\ (\ link\: :ref:`RID<class_RID>`\ ) |const| |
  125. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  126. | :ref:`Vector3<class_Vector3>` | :ref:`link_get_end_position<class_NavigationServer3D_method_link_get_end_position>`\ (\ link\: :ref:`RID<class_RID>`\ ) |const| |
  127. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  128. | :ref:`float<class_float>` | :ref:`link_get_enter_cost<class_NavigationServer3D_method_link_get_enter_cost>`\ (\ link\: :ref:`RID<class_RID>`\ ) |const| |
  129. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  130. | :ref:`int<class_int>` | :ref:`link_get_iteration_id<class_NavigationServer3D_method_link_get_iteration_id>`\ (\ link\: :ref:`RID<class_RID>`\ ) |const| |
  131. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  132. | :ref:`RID<class_RID>` | :ref:`link_get_map<class_NavigationServer3D_method_link_get_map>`\ (\ link\: :ref:`RID<class_RID>`\ ) |const| |
  133. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  134. | :ref:`int<class_int>` | :ref:`link_get_navigation_layers<class_NavigationServer3D_method_link_get_navigation_layers>`\ (\ link\: :ref:`RID<class_RID>`\ ) |const| |
  135. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  136. | :ref:`int<class_int>` | :ref:`link_get_owner_id<class_NavigationServer3D_method_link_get_owner_id>`\ (\ link\: :ref:`RID<class_RID>`\ ) |const| |
  137. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  138. | :ref:`Vector3<class_Vector3>` | :ref:`link_get_start_position<class_NavigationServer3D_method_link_get_start_position>`\ (\ link\: :ref:`RID<class_RID>`\ ) |const| |
  139. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  140. | :ref:`float<class_float>` | :ref:`link_get_travel_cost<class_NavigationServer3D_method_link_get_travel_cost>`\ (\ link\: :ref:`RID<class_RID>`\ ) |const| |
  141. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  142. | :ref:`bool<class_bool>` | :ref:`link_is_bidirectional<class_NavigationServer3D_method_link_is_bidirectional>`\ (\ link\: :ref:`RID<class_RID>`\ ) |const| |
  143. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  144. | |void| | :ref:`link_set_bidirectional<class_NavigationServer3D_method_link_set_bidirectional>`\ (\ link\: :ref:`RID<class_RID>`, bidirectional\: :ref:`bool<class_bool>`\ ) |
  145. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  146. | |void| | :ref:`link_set_enabled<class_NavigationServer3D_method_link_set_enabled>`\ (\ link\: :ref:`RID<class_RID>`, enabled\: :ref:`bool<class_bool>`\ ) |
  147. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  148. | |void| | :ref:`link_set_end_position<class_NavigationServer3D_method_link_set_end_position>`\ (\ link\: :ref:`RID<class_RID>`, position\: :ref:`Vector3<class_Vector3>`\ ) |
  149. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  150. | |void| | :ref:`link_set_enter_cost<class_NavigationServer3D_method_link_set_enter_cost>`\ (\ link\: :ref:`RID<class_RID>`, enter_cost\: :ref:`float<class_float>`\ ) |
  151. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  152. | |void| | :ref:`link_set_map<class_NavigationServer3D_method_link_set_map>`\ (\ link\: :ref:`RID<class_RID>`, map\: :ref:`RID<class_RID>`\ ) |
  153. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  154. | |void| | :ref:`link_set_navigation_layers<class_NavigationServer3D_method_link_set_navigation_layers>`\ (\ link\: :ref:`RID<class_RID>`, navigation_layers\: :ref:`int<class_int>`\ ) |
  155. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  156. | |void| | :ref:`link_set_owner_id<class_NavigationServer3D_method_link_set_owner_id>`\ (\ link\: :ref:`RID<class_RID>`, owner_id\: :ref:`int<class_int>`\ ) |
  157. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  158. | |void| | :ref:`link_set_start_position<class_NavigationServer3D_method_link_set_start_position>`\ (\ link\: :ref:`RID<class_RID>`, position\: :ref:`Vector3<class_Vector3>`\ ) |
  159. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  160. | |void| | :ref:`link_set_travel_cost<class_NavigationServer3D_method_link_set_travel_cost>`\ (\ link\: :ref:`RID<class_RID>`, travel_cost\: :ref:`float<class_float>`\ ) |
  161. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  162. | :ref:`RID<class_RID>` | :ref:`map_create<class_NavigationServer3D_method_map_create>`\ (\ ) |
  163. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  164. | |void| | :ref:`map_force_update<class_NavigationServer3D_method_map_force_update>`\ (\ map\: :ref:`RID<class_RID>`\ ) |
  165. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  166. | :ref:`Array<class_Array>`\[:ref:`RID<class_RID>`\] | :ref:`map_get_agents<class_NavigationServer3D_method_map_get_agents>`\ (\ map\: :ref:`RID<class_RID>`\ ) |const| |
  167. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  168. | :ref:`float<class_float>` | :ref:`map_get_cell_height<class_NavigationServer3D_method_map_get_cell_height>`\ (\ map\: :ref:`RID<class_RID>`\ ) |const| |
  169. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  170. | :ref:`float<class_float>` | :ref:`map_get_cell_size<class_NavigationServer3D_method_map_get_cell_size>`\ (\ map\: :ref:`RID<class_RID>`\ ) |const| |
  171. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  172. | :ref:`Vector3<class_Vector3>` | :ref:`map_get_closest_point<class_NavigationServer3D_method_map_get_closest_point>`\ (\ map\: :ref:`RID<class_RID>`, to_point\: :ref:`Vector3<class_Vector3>`\ ) |const| |
  173. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  174. | :ref:`Vector3<class_Vector3>` | :ref:`map_get_closest_point_normal<class_NavigationServer3D_method_map_get_closest_point_normal>`\ (\ map\: :ref:`RID<class_RID>`, to_point\: :ref:`Vector3<class_Vector3>`\ ) |const| |
  175. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  176. | :ref:`RID<class_RID>` | :ref:`map_get_closest_point_owner<class_NavigationServer3D_method_map_get_closest_point_owner>`\ (\ map\: :ref:`RID<class_RID>`, to_point\: :ref:`Vector3<class_Vector3>`\ ) |const| |
  177. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  178. | :ref:`Vector3<class_Vector3>` | :ref:`map_get_closest_point_to_segment<class_NavigationServer3D_method_map_get_closest_point_to_segment>`\ (\ map\: :ref:`RID<class_RID>`, start\: :ref:`Vector3<class_Vector3>`, end\: :ref:`Vector3<class_Vector3>`, use_collision\: :ref:`bool<class_bool>` = false\ ) |const| |
  179. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  180. | :ref:`float<class_float>` | :ref:`map_get_edge_connection_margin<class_NavigationServer3D_method_map_get_edge_connection_margin>`\ (\ map\: :ref:`RID<class_RID>`\ ) |const| |
  181. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  182. | :ref:`int<class_int>` | :ref:`map_get_iteration_id<class_NavigationServer3D_method_map_get_iteration_id>`\ (\ map\: :ref:`RID<class_RID>`\ ) |const| |
  183. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  184. | :ref:`float<class_float>` | :ref:`map_get_link_connection_radius<class_NavigationServer3D_method_map_get_link_connection_radius>`\ (\ map\: :ref:`RID<class_RID>`\ ) |const| |
  185. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  186. | :ref:`Array<class_Array>`\[:ref:`RID<class_RID>`\] | :ref:`map_get_links<class_NavigationServer3D_method_map_get_links>`\ (\ map\: :ref:`RID<class_RID>`\ ) |const| |
  187. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  188. | :ref:`float<class_float>` | :ref:`map_get_merge_rasterizer_cell_scale<class_NavigationServer3D_method_map_get_merge_rasterizer_cell_scale>`\ (\ map\: :ref:`RID<class_RID>`\ ) |const| |
  189. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  190. | :ref:`Array<class_Array>`\[:ref:`RID<class_RID>`\] | :ref:`map_get_obstacles<class_NavigationServer3D_method_map_get_obstacles>`\ (\ map\: :ref:`RID<class_RID>`\ ) |const| |
  191. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  192. | :ref:`PackedVector3Array<class_PackedVector3Array>` | :ref:`map_get_path<class_NavigationServer3D_method_map_get_path>`\ (\ map\: :ref:`RID<class_RID>`, origin\: :ref:`Vector3<class_Vector3>`, destination\: :ref:`Vector3<class_Vector3>`, optimize\: :ref:`bool<class_bool>`, navigation_layers\: :ref:`int<class_int>` = 1\ ) |
  193. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  194. | :ref:`Vector3<class_Vector3>` | :ref:`map_get_random_point<class_NavigationServer3D_method_map_get_random_point>`\ (\ map\: :ref:`RID<class_RID>`, navigation_layers\: :ref:`int<class_int>`, uniformly\: :ref:`bool<class_bool>`\ ) |const| |
  195. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  196. | :ref:`Array<class_Array>`\[:ref:`RID<class_RID>`\] | :ref:`map_get_regions<class_NavigationServer3D_method_map_get_regions>`\ (\ map\: :ref:`RID<class_RID>`\ ) |const| |
  197. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  198. | :ref:`Vector3<class_Vector3>` | :ref:`map_get_up<class_NavigationServer3D_method_map_get_up>`\ (\ map\: :ref:`RID<class_RID>`\ ) |const| |
  199. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  200. | :ref:`bool<class_bool>` | :ref:`map_get_use_async_iterations<class_NavigationServer3D_method_map_get_use_async_iterations>`\ (\ map\: :ref:`RID<class_RID>`\ ) |const| |
  201. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  202. | :ref:`bool<class_bool>` | :ref:`map_get_use_edge_connections<class_NavigationServer3D_method_map_get_use_edge_connections>`\ (\ map\: :ref:`RID<class_RID>`\ ) |const| |
  203. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  204. | :ref:`bool<class_bool>` | :ref:`map_is_active<class_NavigationServer3D_method_map_is_active>`\ (\ map\: :ref:`RID<class_RID>`\ ) |const| |
  205. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  206. | |void| | :ref:`map_set_active<class_NavigationServer3D_method_map_set_active>`\ (\ map\: :ref:`RID<class_RID>`, active\: :ref:`bool<class_bool>`\ ) |
  207. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  208. | |void| | :ref:`map_set_cell_height<class_NavigationServer3D_method_map_set_cell_height>`\ (\ map\: :ref:`RID<class_RID>`, cell_height\: :ref:`float<class_float>`\ ) |
  209. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  210. | |void| | :ref:`map_set_cell_size<class_NavigationServer3D_method_map_set_cell_size>`\ (\ map\: :ref:`RID<class_RID>`, cell_size\: :ref:`float<class_float>`\ ) |
  211. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  212. | |void| | :ref:`map_set_edge_connection_margin<class_NavigationServer3D_method_map_set_edge_connection_margin>`\ (\ map\: :ref:`RID<class_RID>`, margin\: :ref:`float<class_float>`\ ) |
  213. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  214. | |void| | :ref:`map_set_link_connection_radius<class_NavigationServer3D_method_map_set_link_connection_radius>`\ (\ map\: :ref:`RID<class_RID>`, radius\: :ref:`float<class_float>`\ ) |
  215. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  216. | |void| | :ref:`map_set_merge_rasterizer_cell_scale<class_NavigationServer3D_method_map_set_merge_rasterizer_cell_scale>`\ (\ map\: :ref:`RID<class_RID>`, scale\: :ref:`float<class_float>`\ ) |
  217. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  218. | |void| | :ref:`map_set_up<class_NavigationServer3D_method_map_set_up>`\ (\ map\: :ref:`RID<class_RID>`, up\: :ref:`Vector3<class_Vector3>`\ ) |
  219. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  220. | |void| | :ref:`map_set_use_async_iterations<class_NavigationServer3D_method_map_set_use_async_iterations>`\ (\ map\: :ref:`RID<class_RID>`, enabled\: :ref:`bool<class_bool>`\ ) |
  221. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  222. | |void| | :ref:`map_set_use_edge_connections<class_NavigationServer3D_method_map_set_use_edge_connections>`\ (\ map\: :ref:`RID<class_RID>`, enabled\: :ref:`bool<class_bool>`\ ) |
  223. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  224. | :ref:`RID<class_RID>` | :ref:`obstacle_create<class_NavigationServer3D_method_obstacle_create>`\ (\ ) |
  225. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  226. | :ref:`bool<class_bool>` | :ref:`obstacle_get_avoidance_enabled<class_NavigationServer3D_method_obstacle_get_avoidance_enabled>`\ (\ obstacle\: :ref:`RID<class_RID>`\ ) |const| |
  227. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  228. | :ref:`int<class_int>` | :ref:`obstacle_get_avoidance_layers<class_NavigationServer3D_method_obstacle_get_avoidance_layers>`\ (\ obstacle\: :ref:`RID<class_RID>`\ ) |const| |
  229. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  230. | :ref:`float<class_float>` | :ref:`obstacle_get_height<class_NavigationServer3D_method_obstacle_get_height>`\ (\ obstacle\: :ref:`RID<class_RID>`\ ) |const| |
  231. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  232. | :ref:`RID<class_RID>` | :ref:`obstacle_get_map<class_NavigationServer3D_method_obstacle_get_map>`\ (\ obstacle\: :ref:`RID<class_RID>`\ ) |const| |
  233. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  234. | :ref:`bool<class_bool>` | :ref:`obstacle_get_paused<class_NavigationServer3D_method_obstacle_get_paused>`\ (\ obstacle\: :ref:`RID<class_RID>`\ ) |const| |
  235. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  236. | :ref:`Vector3<class_Vector3>` | :ref:`obstacle_get_position<class_NavigationServer3D_method_obstacle_get_position>`\ (\ obstacle\: :ref:`RID<class_RID>`\ ) |const| |
  237. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  238. | :ref:`float<class_float>` | :ref:`obstacle_get_radius<class_NavigationServer3D_method_obstacle_get_radius>`\ (\ obstacle\: :ref:`RID<class_RID>`\ ) |const| |
  239. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  240. | :ref:`bool<class_bool>` | :ref:`obstacle_get_use_3d_avoidance<class_NavigationServer3D_method_obstacle_get_use_3d_avoidance>`\ (\ obstacle\: :ref:`RID<class_RID>`\ ) |const| |
  241. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  242. | :ref:`Vector3<class_Vector3>` | :ref:`obstacle_get_velocity<class_NavigationServer3D_method_obstacle_get_velocity>`\ (\ obstacle\: :ref:`RID<class_RID>`\ ) |const| |
  243. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  244. | :ref:`PackedVector3Array<class_PackedVector3Array>` | :ref:`obstacle_get_vertices<class_NavigationServer3D_method_obstacle_get_vertices>`\ (\ obstacle\: :ref:`RID<class_RID>`\ ) |const| |
  245. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  246. | |void| | :ref:`obstacle_set_avoidance_enabled<class_NavigationServer3D_method_obstacle_set_avoidance_enabled>`\ (\ obstacle\: :ref:`RID<class_RID>`, enabled\: :ref:`bool<class_bool>`\ ) |
  247. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  248. | |void| | :ref:`obstacle_set_avoidance_layers<class_NavigationServer3D_method_obstacle_set_avoidance_layers>`\ (\ obstacle\: :ref:`RID<class_RID>`, layers\: :ref:`int<class_int>`\ ) |
  249. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  250. | |void| | :ref:`obstacle_set_height<class_NavigationServer3D_method_obstacle_set_height>`\ (\ obstacle\: :ref:`RID<class_RID>`, height\: :ref:`float<class_float>`\ ) |
  251. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  252. | |void| | :ref:`obstacle_set_map<class_NavigationServer3D_method_obstacle_set_map>`\ (\ obstacle\: :ref:`RID<class_RID>`, map\: :ref:`RID<class_RID>`\ ) |
  253. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  254. | |void| | :ref:`obstacle_set_paused<class_NavigationServer3D_method_obstacle_set_paused>`\ (\ obstacle\: :ref:`RID<class_RID>`, paused\: :ref:`bool<class_bool>`\ ) |
  255. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  256. | |void| | :ref:`obstacle_set_position<class_NavigationServer3D_method_obstacle_set_position>`\ (\ obstacle\: :ref:`RID<class_RID>`, position\: :ref:`Vector3<class_Vector3>`\ ) |
  257. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  258. | |void| | :ref:`obstacle_set_radius<class_NavigationServer3D_method_obstacle_set_radius>`\ (\ obstacle\: :ref:`RID<class_RID>`, radius\: :ref:`float<class_float>`\ ) |
  259. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  260. | |void| | :ref:`obstacle_set_use_3d_avoidance<class_NavigationServer3D_method_obstacle_set_use_3d_avoidance>`\ (\ obstacle\: :ref:`RID<class_RID>`, enabled\: :ref:`bool<class_bool>`\ ) |
  261. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  262. | |void| | :ref:`obstacle_set_velocity<class_NavigationServer3D_method_obstacle_set_velocity>`\ (\ obstacle\: :ref:`RID<class_RID>`, velocity\: :ref:`Vector3<class_Vector3>`\ ) |
  263. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  264. | |void| | :ref:`obstacle_set_vertices<class_NavigationServer3D_method_obstacle_set_vertices>`\ (\ obstacle\: :ref:`RID<class_RID>`, vertices\: :ref:`PackedVector3Array<class_PackedVector3Array>`\ ) |
  265. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  266. | |void| | :ref:`parse_source_geometry_data<class_NavigationServer3D_method_parse_source_geometry_data>`\ (\ navigation_mesh\: :ref:`NavigationMesh<class_NavigationMesh>`, source_geometry_data\: :ref:`NavigationMeshSourceGeometryData3D<class_NavigationMeshSourceGeometryData3D>`, root_node\: :ref:`Node<class_Node>`, callback\: :ref:`Callable<class_Callable>` = Callable()\ ) |
  267. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  268. | |void| | :ref:`query_path<class_NavigationServer3D_method_query_path>`\ (\ parameters\: :ref:`NavigationPathQueryParameters3D<class_NavigationPathQueryParameters3D>`, result\: :ref:`NavigationPathQueryResult3D<class_NavigationPathQueryResult3D>`, callback\: :ref:`Callable<class_Callable>` = Callable()\ ) |
  269. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  270. | |void| | :ref:`region_bake_navigation_mesh<class_NavigationServer3D_method_region_bake_navigation_mesh>`\ (\ navigation_mesh\: :ref:`NavigationMesh<class_NavigationMesh>`, root_node\: :ref:`Node<class_Node>`\ ) |
  271. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  272. | :ref:`RID<class_RID>` | :ref:`region_create<class_NavigationServer3D_method_region_create>`\ (\ ) |
  273. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  274. | :ref:`AABB<class_AABB>` | :ref:`region_get_bounds<class_NavigationServer3D_method_region_get_bounds>`\ (\ region\: :ref:`RID<class_RID>`\ ) |const| |
  275. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  276. | :ref:`Vector3<class_Vector3>` | :ref:`region_get_closest_point<class_NavigationServer3D_method_region_get_closest_point>`\ (\ region\: :ref:`RID<class_RID>`, to_point\: :ref:`Vector3<class_Vector3>`\ ) |const| |
  277. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  278. | :ref:`Vector3<class_Vector3>` | :ref:`region_get_closest_point_normal<class_NavigationServer3D_method_region_get_closest_point_normal>`\ (\ region\: :ref:`RID<class_RID>`, to_point\: :ref:`Vector3<class_Vector3>`\ ) |const| |
  279. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  280. | :ref:`Vector3<class_Vector3>` | :ref:`region_get_closest_point_to_segment<class_NavigationServer3D_method_region_get_closest_point_to_segment>`\ (\ region\: :ref:`RID<class_RID>`, start\: :ref:`Vector3<class_Vector3>`, end\: :ref:`Vector3<class_Vector3>`, use_collision\: :ref:`bool<class_bool>` = false\ ) |const| |
  281. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  282. | :ref:`Vector3<class_Vector3>` | :ref:`region_get_connection_pathway_end<class_NavigationServer3D_method_region_get_connection_pathway_end>`\ (\ region\: :ref:`RID<class_RID>`, connection\: :ref:`int<class_int>`\ ) |const| |
  283. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  284. | :ref:`Vector3<class_Vector3>` | :ref:`region_get_connection_pathway_start<class_NavigationServer3D_method_region_get_connection_pathway_start>`\ (\ region\: :ref:`RID<class_RID>`, connection\: :ref:`int<class_int>`\ ) |const| |
  285. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  286. | :ref:`int<class_int>` | :ref:`region_get_connections_count<class_NavigationServer3D_method_region_get_connections_count>`\ (\ region\: :ref:`RID<class_RID>`\ ) |const| |
  287. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  288. | :ref:`bool<class_bool>` | :ref:`region_get_enabled<class_NavigationServer3D_method_region_get_enabled>`\ (\ region\: :ref:`RID<class_RID>`\ ) |const| |
  289. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  290. | :ref:`float<class_float>` | :ref:`region_get_enter_cost<class_NavigationServer3D_method_region_get_enter_cost>`\ (\ region\: :ref:`RID<class_RID>`\ ) |const| |
  291. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  292. | :ref:`int<class_int>` | :ref:`region_get_iteration_id<class_NavigationServer3D_method_region_get_iteration_id>`\ (\ region\: :ref:`RID<class_RID>`\ ) |const| |
  293. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  294. | :ref:`RID<class_RID>` | :ref:`region_get_map<class_NavigationServer3D_method_region_get_map>`\ (\ region\: :ref:`RID<class_RID>`\ ) |const| |
  295. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  296. | :ref:`int<class_int>` | :ref:`region_get_navigation_layers<class_NavigationServer3D_method_region_get_navigation_layers>`\ (\ region\: :ref:`RID<class_RID>`\ ) |const| |
  297. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  298. | :ref:`int<class_int>` | :ref:`region_get_owner_id<class_NavigationServer3D_method_region_get_owner_id>`\ (\ region\: :ref:`RID<class_RID>`\ ) |const| |
  299. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  300. | :ref:`Vector3<class_Vector3>` | :ref:`region_get_random_point<class_NavigationServer3D_method_region_get_random_point>`\ (\ region\: :ref:`RID<class_RID>`, navigation_layers\: :ref:`int<class_int>`, uniformly\: :ref:`bool<class_bool>`\ ) |const| |
  301. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  302. | :ref:`Transform3D<class_Transform3D>` | :ref:`region_get_transform<class_NavigationServer3D_method_region_get_transform>`\ (\ region\: :ref:`RID<class_RID>`\ ) |const| |
  303. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  304. | :ref:`float<class_float>` | :ref:`region_get_travel_cost<class_NavigationServer3D_method_region_get_travel_cost>`\ (\ region\: :ref:`RID<class_RID>`\ ) |const| |
  305. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  306. | :ref:`bool<class_bool>` | :ref:`region_get_use_async_iterations<class_NavigationServer3D_method_region_get_use_async_iterations>`\ (\ region\: :ref:`RID<class_RID>`\ ) |const| |
  307. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  308. | :ref:`bool<class_bool>` | :ref:`region_get_use_edge_connections<class_NavigationServer3D_method_region_get_use_edge_connections>`\ (\ region\: :ref:`RID<class_RID>`\ ) |const| |
  309. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  310. | :ref:`bool<class_bool>` | :ref:`region_owns_point<class_NavigationServer3D_method_region_owns_point>`\ (\ region\: :ref:`RID<class_RID>`, point\: :ref:`Vector3<class_Vector3>`\ ) |const| |
  311. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  312. | |void| | :ref:`region_set_enabled<class_NavigationServer3D_method_region_set_enabled>`\ (\ region\: :ref:`RID<class_RID>`, enabled\: :ref:`bool<class_bool>`\ ) |
  313. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  314. | |void| | :ref:`region_set_enter_cost<class_NavigationServer3D_method_region_set_enter_cost>`\ (\ region\: :ref:`RID<class_RID>`, enter_cost\: :ref:`float<class_float>`\ ) |
  315. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  316. | |void| | :ref:`region_set_map<class_NavigationServer3D_method_region_set_map>`\ (\ region\: :ref:`RID<class_RID>`, map\: :ref:`RID<class_RID>`\ ) |
  317. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  318. | |void| | :ref:`region_set_navigation_layers<class_NavigationServer3D_method_region_set_navigation_layers>`\ (\ region\: :ref:`RID<class_RID>`, navigation_layers\: :ref:`int<class_int>`\ ) |
  319. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  320. | |void| | :ref:`region_set_navigation_mesh<class_NavigationServer3D_method_region_set_navigation_mesh>`\ (\ region\: :ref:`RID<class_RID>`, navigation_mesh\: :ref:`NavigationMesh<class_NavigationMesh>`\ ) |
  321. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  322. | |void| | :ref:`region_set_owner_id<class_NavigationServer3D_method_region_set_owner_id>`\ (\ region\: :ref:`RID<class_RID>`, owner_id\: :ref:`int<class_int>`\ ) |
  323. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  324. | |void| | :ref:`region_set_transform<class_NavigationServer3D_method_region_set_transform>`\ (\ region\: :ref:`RID<class_RID>`, transform\: :ref:`Transform3D<class_Transform3D>`\ ) |
  325. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  326. | |void| | :ref:`region_set_travel_cost<class_NavigationServer3D_method_region_set_travel_cost>`\ (\ region\: :ref:`RID<class_RID>`, travel_cost\: :ref:`float<class_float>`\ ) |
  327. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  328. | |void| | :ref:`region_set_use_async_iterations<class_NavigationServer3D_method_region_set_use_async_iterations>`\ (\ region\: :ref:`RID<class_RID>`, enabled\: :ref:`bool<class_bool>`\ ) |
  329. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  330. | |void| | :ref:`region_set_use_edge_connections<class_NavigationServer3D_method_region_set_use_edge_connections>`\ (\ region\: :ref:`RID<class_RID>`, enabled\: :ref:`bool<class_bool>`\ ) |
  331. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  332. | |void| | :ref:`set_active<class_NavigationServer3D_method_set_active>`\ (\ active\: :ref:`bool<class_bool>`\ ) |
  333. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  334. | |void| | :ref:`set_debug_enabled<class_NavigationServer3D_method_set_debug_enabled>`\ (\ enabled\: :ref:`bool<class_bool>`\ ) |
  335. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  336. | :ref:`PackedVector3Array<class_PackedVector3Array>` | :ref:`simplify_path<class_NavigationServer3D_method_simplify_path>`\ (\ path\: :ref:`PackedVector3Array<class_PackedVector3Array>`, epsilon\: :ref:`float<class_float>`\ ) |
  337. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  338. | :ref:`RID<class_RID>` | :ref:`source_geometry_parser_create<class_NavigationServer3D_method_source_geometry_parser_create>`\ (\ ) |
  339. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  340. | |void| | :ref:`source_geometry_parser_set_callback<class_NavigationServer3D_method_source_geometry_parser_set_callback>`\ (\ parser\: :ref:`RID<class_RID>`, callback\: :ref:`Callable<class_Callable>`\ ) |
  341. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  342. .. rst-class:: classref-section-separator
  343. ----
  344. .. rst-class:: classref-descriptions-group
  345. Signals
  346. -------
  347. .. _class_NavigationServer3D_signal_avoidance_debug_changed:
  348. .. rst-class:: classref-signal
  349. **avoidance_debug_changed**\ (\ ) :ref:`๐Ÿ”—<class_NavigationServer3D_signal_avoidance_debug_changed>`
  350. Emitted when avoidance debug settings are changed. Only available in debug builds.
  351. .. rst-class:: classref-item-separator
  352. ----
  353. .. _class_NavigationServer3D_signal_map_changed:
  354. .. rst-class:: classref-signal
  355. **map_changed**\ (\ map\: :ref:`RID<class_RID>`\ ) :ref:`๐Ÿ”—<class_NavigationServer3D_signal_map_changed>`
  356. Emitted when a navigation map is updated, when a region moves or is modified.
  357. .. rst-class:: classref-item-separator
  358. ----
  359. .. _class_NavigationServer3D_signal_navigation_debug_changed:
  360. .. rst-class:: classref-signal
  361. **navigation_debug_changed**\ (\ ) :ref:`๐Ÿ”—<class_NavigationServer3D_signal_navigation_debug_changed>`
  362. Emitted when navigation debug settings are changed. Only available in debug builds.
  363. .. rst-class:: classref-section-separator
  364. ----
  365. .. rst-class:: classref-descriptions-group
  366. Enumerations
  367. ------------
  368. .. _enum_NavigationServer3D_ProcessInfo:
  369. .. rst-class:: classref-enumeration
  370. enum **ProcessInfo**: :ref:`๐Ÿ”—<enum_NavigationServer3D_ProcessInfo>`
  371. .. _class_NavigationServer3D_constant_INFO_ACTIVE_MAPS:
  372. .. rst-class:: classref-enumeration-constant
  373. :ref:`ProcessInfo<enum_NavigationServer3D_ProcessInfo>` **INFO_ACTIVE_MAPS** = ``0``
  374. Constant to get the number of active navigation maps.
  375. .. _class_NavigationServer3D_constant_INFO_REGION_COUNT:
  376. .. rst-class:: classref-enumeration-constant
  377. :ref:`ProcessInfo<enum_NavigationServer3D_ProcessInfo>` **INFO_REGION_COUNT** = ``1``
  378. Constant to get the number of active navigation regions.
  379. .. _class_NavigationServer3D_constant_INFO_AGENT_COUNT:
  380. .. rst-class:: classref-enumeration-constant
  381. :ref:`ProcessInfo<enum_NavigationServer3D_ProcessInfo>` **INFO_AGENT_COUNT** = ``2``
  382. Constant to get the number of active navigation agents processing avoidance.
  383. .. _class_NavigationServer3D_constant_INFO_LINK_COUNT:
  384. .. rst-class:: classref-enumeration-constant
  385. :ref:`ProcessInfo<enum_NavigationServer3D_ProcessInfo>` **INFO_LINK_COUNT** = ``3``
  386. Constant to get the number of active navigation links.
  387. .. _class_NavigationServer3D_constant_INFO_POLYGON_COUNT:
  388. .. rst-class:: classref-enumeration-constant
  389. :ref:`ProcessInfo<enum_NavigationServer3D_ProcessInfo>` **INFO_POLYGON_COUNT** = ``4``
  390. Constant to get the number of navigation mesh polygons.
  391. .. _class_NavigationServer3D_constant_INFO_EDGE_COUNT:
  392. .. rst-class:: classref-enumeration-constant
  393. :ref:`ProcessInfo<enum_NavigationServer3D_ProcessInfo>` **INFO_EDGE_COUNT** = ``5``
  394. Constant to get the number of navigation mesh polygon edges.
  395. .. _class_NavigationServer3D_constant_INFO_EDGE_MERGE_COUNT:
  396. .. rst-class:: classref-enumeration-constant
  397. :ref:`ProcessInfo<enum_NavigationServer3D_ProcessInfo>` **INFO_EDGE_MERGE_COUNT** = ``6``
  398. Constant to get the number of navigation mesh polygon edges that were merged due to edge key overlap.
  399. .. _class_NavigationServer3D_constant_INFO_EDGE_CONNECTION_COUNT:
  400. .. rst-class:: classref-enumeration-constant
  401. :ref:`ProcessInfo<enum_NavigationServer3D_ProcessInfo>` **INFO_EDGE_CONNECTION_COUNT** = ``7``
  402. Constant to get the number of navigation mesh polygon edges that are considered connected by edge proximity.
  403. .. _class_NavigationServer3D_constant_INFO_EDGE_FREE_COUNT:
  404. .. rst-class:: classref-enumeration-constant
  405. :ref:`ProcessInfo<enum_NavigationServer3D_ProcessInfo>` **INFO_EDGE_FREE_COUNT** = ``8``
  406. Constant to get the number of navigation mesh polygon edges that could not be merged but may be still connected by edge proximity or with links.
  407. .. _class_NavigationServer3D_constant_INFO_OBSTACLE_COUNT:
  408. .. rst-class:: classref-enumeration-constant
  409. :ref:`ProcessInfo<enum_NavigationServer3D_ProcessInfo>` **INFO_OBSTACLE_COUNT** = ``9``
  410. Constant to get the number of active navigation obstacles.
  411. .. rst-class:: classref-section-separator
  412. ----
  413. .. rst-class:: classref-descriptions-group
  414. Method Descriptions
  415. -------------------
  416. .. _class_NavigationServer3D_method_agent_create:
  417. .. rst-class:: classref-method
  418. :ref:`RID<class_RID>` **agent_create**\ (\ ) :ref:`๐Ÿ”—<class_NavigationServer3D_method_agent_create>`
  419. Creates the agent.
  420. .. rst-class:: classref-item-separator
  421. ----
  422. .. _class_NavigationServer3D_method_agent_get_avoidance_enabled:
  423. .. rst-class:: classref-method
  424. :ref:`bool<class_bool>` **agent_get_avoidance_enabled**\ (\ agent\: :ref:`RID<class_RID>`\ ) |const| :ref:`๐Ÿ”—<class_NavigationServer3D_method_agent_get_avoidance_enabled>`
  425. Returns ``true`` if the provided ``agent`` has avoidance enabled.
  426. .. rst-class:: classref-item-separator
  427. ----
  428. .. _class_NavigationServer3D_method_agent_get_avoidance_layers:
  429. .. rst-class:: classref-method
  430. :ref:`int<class_int>` **agent_get_avoidance_layers**\ (\ agent\: :ref:`RID<class_RID>`\ ) |const| :ref:`๐Ÿ”—<class_NavigationServer3D_method_agent_get_avoidance_layers>`
  431. Returns the ``avoidance_layers`` bitmask of the specified ``agent``.
  432. .. rst-class:: classref-item-separator
  433. ----
  434. .. _class_NavigationServer3D_method_agent_get_avoidance_mask:
  435. .. rst-class:: classref-method
  436. :ref:`int<class_int>` **agent_get_avoidance_mask**\ (\ agent\: :ref:`RID<class_RID>`\ ) |const| :ref:`๐Ÿ”—<class_NavigationServer3D_method_agent_get_avoidance_mask>`
  437. Returns the ``avoidance_mask`` bitmask of the specified ``agent``.
  438. .. rst-class:: classref-item-separator
  439. ----
  440. .. _class_NavigationServer3D_method_agent_get_avoidance_priority:
  441. .. rst-class:: classref-method
  442. :ref:`float<class_float>` **agent_get_avoidance_priority**\ (\ agent\: :ref:`RID<class_RID>`\ ) |const| :ref:`๐Ÿ”—<class_NavigationServer3D_method_agent_get_avoidance_priority>`
  443. Returns the ``avoidance_priority`` of the specified ``agent``.
  444. .. rst-class:: classref-item-separator
  445. ----
  446. .. _class_NavigationServer3D_method_agent_get_height:
  447. .. rst-class:: classref-method
  448. :ref:`float<class_float>` **agent_get_height**\ (\ agent\: :ref:`RID<class_RID>`\ ) |const| :ref:`๐Ÿ”—<class_NavigationServer3D_method_agent_get_height>`
  449. Returns the ``height`` of the specified ``agent``.
  450. .. rst-class:: classref-item-separator
  451. ----
  452. .. _class_NavigationServer3D_method_agent_get_map:
  453. .. rst-class:: classref-method
  454. :ref:`RID<class_RID>` **agent_get_map**\ (\ agent\: :ref:`RID<class_RID>`\ ) |const| :ref:`๐Ÿ”—<class_NavigationServer3D_method_agent_get_map>`
  455. Returns the navigation map :ref:`RID<class_RID>` the requested ``agent`` is currently assigned to.
  456. .. rst-class:: classref-item-separator
  457. ----
  458. .. _class_NavigationServer3D_method_agent_get_max_neighbors:
  459. .. rst-class:: classref-method
  460. :ref:`int<class_int>` **agent_get_max_neighbors**\ (\ agent\: :ref:`RID<class_RID>`\ ) |const| :ref:`๐Ÿ”—<class_NavigationServer3D_method_agent_get_max_neighbors>`
  461. Returns the maximum number of other agents the specified ``agent`` takes into account in the navigation.
  462. .. rst-class:: classref-item-separator
  463. ----
  464. .. _class_NavigationServer3D_method_agent_get_max_speed:
  465. .. rst-class:: classref-method
  466. :ref:`float<class_float>` **agent_get_max_speed**\ (\ agent\: :ref:`RID<class_RID>`\ ) |const| :ref:`๐Ÿ”—<class_NavigationServer3D_method_agent_get_max_speed>`
  467. Returns the maximum speed of the specified ``agent``.
  468. .. rst-class:: classref-item-separator
  469. ----
  470. .. _class_NavigationServer3D_method_agent_get_neighbor_distance:
  471. .. rst-class:: classref-method
  472. :ref:`float<class_float>` **agent_get_neighbor_distance**\ (\ agent\: :ref:`RID<class_RID>`\ ) |const| :ref:`๐Ÿ”—<class_NavigationServer3D_method_agent_get_neighbor_distance>`
  473. Returns the maximum distance to other agents the specified ``agent`` takes into account in the navigation.
  474. .. rst-class:: classref-item-separator
  475. ----
  476. .. _class_NavigationServer3D_method_agent_get_paused:
  477. .. rst-class:: classref-method
  478. :ref:`bool<class_bool>` **agent_get_paused**\ (\ agent\: :ref:`RID<class_RID>`\ ) |const| :ref:`๐Ÿ”—<class_NavigationServer3D_method_agent_get_paused>`
  479. Returns ``true`` if the specified ``agent`` is paused.
  480. .. rst-class:: classref-item-separator
  481. ----
  482. .. _class_NavigationServer3D_method_agent_get_position:
  483. .. rst-class:: classref-method
  484. :ref:`Vector3<class_Vector3>` **agent_get_position**\ (\ agent\: :ref:`RID<class_RID>`\ ) |const| :ref:`๐Ÿ”—<class_NavigationServer3D_method_agent_get_position>`
  485. Returns the position of the specified ``agent`` in world space.
  486. .. rst-class:: classref-item-separator
  487. ----
  488. .. _class_NavigationServer3D_method_agent_get_radius:
  489. .. rst-class:: classref-method
  490. :ref:`float<class_float>` **agent_get_radius**\ (\ agent\: :ref:`RID<class_RID>`\ ) |const| :ref:`๐Ÿ”—<class_NavigationServer3D_method_agent_get_radius>`
  491. Returns the radius of the specified ``agent``.
  492. .. rst-class:: classref-item-separator
  493. ----
  494. .. _class_NavigationServer3D_method_agent_get_time_horizon_agents:
  495. .. rst-class:: classref-method
  496. :ref:`float<class_float>` **agent_get_time_horizon_agents**\ (\ agent\: :ref:`RID<class_RID>`\ ) |const| :ref:`๐Ÿ”—<class_NavigationServer3D_method_agent_get_time_horizon_agents>`
  497. Returns the minimal amount of time for which the specified ``agent``'s velocities that are computed by the simulation are safe with respect to other agents.
  498. .. rst-class:: classref-item-separator
  499. ----
  500. .. _class_NavigationServer3D_method_agent_get_time_horizon_obstacles:
  501. .. rst-class:: classref-method
  502. :ref:`float<class_float>` **agent_get_time_horizon_obstacles**\ (\ agent\: :ref:`RID<class_RID>`\ ) |const| :ref:`๐Ÿ”—<class_NavigationServer3D_method_agent_get_time_horizon_obstacles>`
  503. Returns the minimal amount of time for which the specified ``agent``'s velocities that are computed by the simulation are safe with respect to static avoidance obstacles.
  504. .. rst-class:: classref-item-separator
  505. ----
  506. .. _class_NavigationServer3D_method_agent_get_use_3d_avoidance:
  507. .. rst-class:: classref-method
  508. :ref:`bool<class_bool>` **agent_get_use_3d_avoidance**\ (\ agent\: :ref:`RID<class_RID>`\ ) |const| :ref:`๐Ÿ”—<class_NavigationServer3D_method_agent_get_use_3d_avoidance>`
  509. Returns ``true`` if the provided ``agent`` uses avoidance in 3D space Vector3(x,y,z) instead of horizontal 2D Vector2(x,y) / Vector3(x,0.0,z).
  510. .. rst-class:: classref-item-separator
  511. ----
  512. .. _class_NavigationServer3D_method_agent_get_velocity:
  513. .. rst-class:: classref-method
  514. :ref:`Vector3<class_Vector3>` **agent_get_velocity**\ (\ agent\: :ref:`RID<class_RID>`\ ) |const| :ref:`๐Ÿ”—<class_NavigationServer3D_method_agent_get_velocity>`
  515. Returns the velocity of the specified ``agent``.
  516. .. rst-class:: classref-item-separator
  517. ----
  518. .. _class_NavigationServer3D_method_agent_has_avoidance_callback:
  519. .. rst-class:: classref-method
  520. :ref:`bool<class_bool>` **agent_has_avoidance_callback**\ (\ agent\: :ref:`RID<class_RID>`\ ) |const| :ref:`๐Ÿ”—<class_NavigationServer3D_method_agent_has_avoidance_callback>`
  521. Return ``true`` if the specified ``agent`` has an avoidance callback.
  522. .. rst-class:: classref-item-separator
  523. ----
  524. .. _class_NavigationServer3D_method_agent_is_map_changed:
  525. .. rst-class:: classref-method
  526. :ref:`bool<class_bool>` **agent_is_map_changed**\ (\ agent\: :ref:`RID<class_RID>`\ ) |const| :ref:`๐Ÿ”—<class_NavigationServer3D_method_agent_is_map_changed>`
  527. Returns ``true`` if the map got changed the previous frame.
  528. .. rst-class:: classref-item-separator
  529. ----
  530. .. _class_NavigationServer3D_method_agent_set_avoidance_callback:
  531. .. rst-class:: classref-method
  532. |void| **agent_set_avoidance_callback**\ (\ agent\: :ref:`RID<class_RID>`, callback\: :ref:`Callable<class_Callable>`\ ) :ref:`๐Ÿ”—<class_NavigationServer3D_method_agent_set_avoidance_callback>`
  533. Sets the callback :ref:`Callable<class_Callable>` that gets called after each avoidance processing step for the ``agent``. The calculated ``safe_velocity`` will be dispatched with a signal to the object just before the physics calculations.
  534. \ **Note:** Created callbacks are always processed independently of the SceneTree state as long as the agent is on a navigation map and not freed. To disable the dispatch of a callback from an agent use :ref:`agent_set_avoidance_callback()<class_NavigationServer3D_method_agent_set_avoidance_callback>` again with an empty :ref:`Callable<class_Callable>`.
  535. .. rst-class:: classref-item-separator
  536. ----
  537. .. _class_NavigationServer3D_method_agent_set_avoidance_enabled:
  538. .. rst-class:: classref-method
  539. |void| **agent_set_avoidance_enabled**\ (\ agent\: :ref:`RID<class_RID>`, enabled\: :ref:`bool<class_bool>`\ ) :ref:`๐Ÿ”—<class_NavigationServer3D_method_agent_set_avoidance_enabled>`
  540. If ``enabled`` is ``true``, the provided ``agent`` calculates avoidance.
  541. .. rst-class:: classref-item-separator
  542. ----
  543. .. _class_NavigationServer3D_method_agent_set_avoidance_layers:
  544. .. rst-class:: classref-method
  545. |void| **agent_set_avoidance_layers**\ (\ agent\: :ref:`RID<class_RID>`, layers\: :ref:`int<class_int>`\ ) :ref:`๐Ÿ”—<class_NavigationServer3D_method_agent_set_avoidance_layers>`
  546. Set the agent's ``avoidance_layers`` bitmask.
  547. .. rst-class:: classref-item-separator
  548. ----
  549. .. _class_NavigationServer3D_method_agent_set_avoidance_mask:
  550. .. rst-class:: classref-method
  551. |void| **agent_set_avoidance_mask**\ (\ agent\: :ref:`RID<class_RID>`, mask\: :ref:`int<class_int>`\ ) :ref:`๐Ÿ”—<class_NavigationServer3D_method_agent_set_avoidance_mask>`
  552. Set the agent's ``avoidance_mask`` bitmask.
  553. .. rst-class:: classref-item-separator
  554. ----
  555. .. _class_NavigationServer3D_method_agent_set_avoidance_priority:
  556. .. rst-class:: classref-method
  557. |void| **agent_set_avoidance_priority**\ (\ agent\: :ref:`RID<class_RID>`, priority\: :ref:`float<class_float>`\ ) :ref:`๐Ÿ”—<class_NavigationServer3D_method_agent_set_avoidance_priority>`
  558. Set the agent's ``avoidance_priority`` with a ``priority`` between 0.0 (lowest priority) to 1.0 (highest priority).
  559. The specified ``agent`` does not adjust the velocity for other agents that would match the ``avoidance_mask`` but have a lower ``avoidance_priority``. This in turn makes the other agents with lower priority adjust their velocities even more to avoid collision with this agent.
  560. .. rst-class:: classref-item-separator
  561. ----
  562. .. _class_NavigationServer3D_method_agent_set_height:
  563. .. rst-class:: classref-method
  564. |void| **agent_set_height**\ (\ agent\: :ref:`RID<class_RID>`, height\: :ref:`float<class_float>`\ ) :ref:`๐Ÿ”—<class_NavigationServer3D_method_agent_set_height>`
  565. Updates the provided ``agent`` ``height``.
  566. .. rst-class:: classref-item-separator
  567. ----
  568. .. _class_NavigationServer3D_method_agent_set_map:
  569. .. rst-class:: classref-method
  570. |void| **agent_set_map**\ (\ agent\: :ref:`RID<class_RID>`, map\: :ref:`RID<class_RID>`\ ) :ref:`๐Ÿ”—<class_NavigationServer3D_method_agent_set_map>`
  571. Puts the agent in the map.
  572. .. rst-class:: classref-item-separator
  573. ----
  574. .. _class_NavigationServer3D_method_agent_set_max_neighbors:
  575. .. rst-class:: classref-method
  576. |void| **agent_set_max_neighbors**\ (\ agent\: :ref:`RID<class_RID>`, count\: :ref:`int<class_int>`\ ) :ref:`๐Ÿ”—<class_NavigationServer3D_method_agent_set_max_neighbors>`
  577. Sets the maximum number of other agents the agent takes into account in the navigation. The larger this number, the longer the running time of the simulation. If the number is too low, the simulation will not be safe.
  578. .. rst-class:: classref-item-separator
  579. ----
  580. .. _class_NavigationServer3D_method_agent_set_max_speed:
  581. .. rst-class:: classref-method
  582. |void| **agent_set_max_speed**\ (\ agent\: :ref:`RID<class_RID>`, max_speed\: :ref:`float<class_float>`\ ) :ref:`๐Ÿ”—<class_NavigationServer3D_method_agent_set_max_speed>`
  583. Sets the maximum speed of the agent. Must be positive.
  584. .. rst-class:: classref-item-separator
  585. ----
  586. .. _class_NavigationServer3D_method_agent_set_neighbor_distance:
  587. .. rst-class:: classref-method
  588. |void| **agent_set_neighbor_distance**\ (\ agent\: :ref:`RID<class_RID>`, distance\: :ref:`float<class_float>`\ ) :ref:`๐Ÿ”—<class_NavigationServer3D_method_agent_set_neighbor_distance>`
  589. Sets the maximum distance to other agents this agent takes into account in the navigation. The larger this number, the longer the running time of the simulation. If the number is too low, the simulation will not be safe.
  590. .. rst-class:: classref-item-separator
  591. ----
  592. .. _class_NavigationServer3D_method_agent_set_paused:
  593. .. rst-class:: classref-method
  594. |void| **agent_set_paused**\ (\ agent\: :ref:`RID<class_RID>`, paused\: :ref:`bool<class_bool>`\ ) :ref:`๐Ÿ”—<class_NavigationServer3D_method_agent_set_paused>`
  595. If ``paused`` is ``true`` the specified ``agent`` will not be processed. For example, it will not calculate avoidance velocities or receive avoidance callbacks.
  596. .. rst-class:: classref-item-separator
  597. ----
  598. .. _class_NavigationServer3D_method_agent_set_position:
  599. .. rst-class:: classref-method
  600. |void| **agent_set_position**\ (\ agent\: :ref:`RID<class_RID>`, position\: :ref:`Vector3<class_Vector3>`\ ) :ref:`๐Ÿ”—<class_NavigationServer3D_method_agent_set_position>`
  601. Sets the position of the agent in world space.
  602. .. rst-class:: classref-item-separator
  603. ----
  604. .. _class_NavigationServer3D_method_agent_set_radius:
  605. .. rst-class:: classref-method
  606. |void| **agent_set_radius**\ (\ agent\: :ref:`RID<class_RID>`, radius\: :ref:`float<class_float>`\ ) :ref:`๐Ÿ”—<class_NavigationServer3D_method_agent_set_radius>`
  607. Sets the radius of the agent.
  608. .. rst-class:: classref-item-separator
  609. ----
  610. .. _class_NavigationServer3D_method_agent_set_time_horizon_agents:
  611. .. rst-class:: classref-method
  612. |void| **agent_set_time_horizon_agents**\ (\ agent\: :ref:`RID<class_RID>`, time_horizon\: :ref:`float<class_float>`\ ) :ref:`๐Ÿ”—<class_NavigationServer3D_method_agent_set_time_horizon_agents>`
  613. The minimal amount of time for which the agent's velocities that are computed by the simulation are safe with respect to other agents. The larger this number, the sooner this agent will respond to the presence of other agents, but the less freedom this agent has in choosing its velocities. A too high value will slow down agents movement considerably. Must be positive.
  614. .. rst-class:: classref-item-separator
  615. ----
  616. .. _class_NavigationServer3D_method_agent_set_time_horizon_obstacles:
  617. .. rst-class:: classref-method
  618. |void| **agent_set_time_horizon_obstacles**\ (\ agent\: :ref:`RID<class_RID>`, time_horizon\: :ref:`float<class_float>`\ ) :ref:`๐Ÿ”—<class_NavigationServer3D_method_agent_set_time_horizon_obstacles>`
  619. The minimal amount of time for which the agent's velocities that are computed by the simulation are safe with respect to static avoidance obstacles. The larger this number, the sooner this agent will respond to the presence of static avoidance obstacles, but the less freedom this agent has in choosing its velocities. A too high value will slow down agents movement considerably. Must be positive.
  620. .. rst-class:: classref-item-separator
  621. ----
  622. .. _class_NavigationServer3D_method_agent_set_use_3d_avoidance:
  623. .. rst-class:: classref-method
  624. |void| **agent_set_use_3d_avoidance**\ (\ agent\: :ref:`RID<class_RID>`, enabled\: :ref:`bool<class_bool>`\ ) :ref:`๐Ÿ”—<class_NavigationServer3D_method_agent_set_use_3d_avoidance>`
  625. Sets if the agent uses the 2D avoidance or the 3D avoidance while avoidance is enabled.
  626. If ``true`` the agent calculates avoidance velocities in 3D for the xyz-axis, e.g. for games that take place in air, underwater or space. The 3D using agent only avoids other 3D avoidance using agent's. The 3D using agent only reacts to radius based avoidance obstacles. The 3D using agent ignores any vertices based obstacles. The 3D using agent only avoids other 3D using agent's.
  627. If ``false`` the agent calculates avoidance velocities in 2D along the xz-axis ignoring the y-axis. The 2D using agent only avoids other 2D avoidance using agent's. The 2D using agent reacts to radius avoidance obstacles. The 2D using agent reacts to vertices based avoidance obstacles. The 2D using agent only avoids other 2D using agent's. 2D using agents will ignore other 2D using agents or obstacles that are below their current position or above their current position including the agents height in 2D avoidance.
  628. .. rst-class:: classref-item-separator
  629. ----
  630. .. _class_NavigationServer3D_method_agent_set_velocity:
  631. .. rst-class:: classref-method
  632. |void| **agent_set_velocity**\ (\ agent\: :ref:`RID<class_RID>`, velocity\: :ref:`Vector3<class_Vector3>`\ ) :ref:`๐Ÿ”—<class_NavigationServer3D_method_agent_set_velocity>`
  633. Sets ``velocity`` as the new wanted velocity for the specified ``agent``. The avoidance simulation will try to fulfill this velocity if possible but will modify it to avoid collision with other agent's and obstacles. When an agent is teleported to a new position use :ref:`agent_set_velocity_forced()<class_NavigationServer3D_method_agent_set_velocity_forced>` as well to reset the internal simulation velocity.
  634. .. rst-class:: classref-item-separator
  635. ----
  636. .. _class_NavigationServer3D_method_agent_set_velocity_forced:
  637. .. rst-class:: classref-method
  638. |void| **agent_set_velocity_forced**\ (\ agent\: :ref:`RID<class_RID>`, velocity\: :ref:`Vector3<class_Vector3>`\ ) :ref:`๐Ÿ”—<class_NavigationServer3D_method_agent_set_velocity_forced>`
  639. Replaces the internal velocity in the collision avoidance simulation with ``velocity`` for the specified ``agent``. When an agent is teleported to a new position this function should be used in the same frame. If called frequently this function can get agents stuck.
  640. .. rst-class:: classref-item-separator
  641. ----
  642. .. _class_NavigationServer3D_method_bake_from_source_geometry_data:
  643. .. rst-class:: classref-method
  644. |void| **bake_from_source_geometry_data**\ (\ navigation_mesh\: :ref:`NavigationMesh<class_NavigationMesh>`, source_geometry_data\: :ref:`NavigationMeshSourceGeometryData3D<class_NavigationMeshSourceGeometryData3D>`, callback\: :ref:`Callable<class_Callable>` = Callable()\ ) :ref:`๐Ÿ”—<class_NavigationServer3D_method_bake_from_source_geometry_data>`
  645. Bakes the provided ``navigation_mesh`` with the data from the provided ``source_geometry_data``. After the process is finished the optional ``callback`` will be called.
  646. .. rst-class:: classref-item-separator
  647. ----
  648. .. _class_NavigationServer3D_method_bake_from_source_geometry_data_async:
  649. .. rst-class:: classref-method
  650. |void| **bake_from_source_geometry_data_async**\ (\ navigation_mesh\: :ref:`NavigationMesh<class_NavigationMesh>`, source_geometry_data\: :ref:`NavigationMeshSourceGeometryData3D<class_NavigationMeshSourceGeometryData3D>`, callback\: :ref:`Callable<class_Callable>` = Callable()\ ) :ref:`๐Ÿ”—<class_NavigationServer3D_method_bake_from_source_geometry_data_async>`
  651. Bakes the provided ``navigation_mesh`` with the data from the provided ``source_geometry_data`` as an async task running on a background thread. After the process is finished the optional ``callback`` will be called.
  652. .. rst-class:: classref-item-separator
  653. ----
  654. .. _class_NavigationServer3D_method_free_rid:
  655. .. rst-class:: classref-method
  656. |void| **free_rid**\ (\ rid\: :ref:`RID<class_RID>`\ ) :ref:`๐Ÿ”—<class_NavigationServer3D_method_free_rid>`
  657. Destroys the given RID.
  658. .. rst-class:: classref-item-separator
  659. ----
  660. .. _class_NavigationServer3D_method_get_debug_enabled:
  661. .. rst-class:: classref-method
  662. :ref:`bool<class_bool>` **get_debug_enabled**\ (\ ) |const| :ref:`๐Ÿ”—<class_NavigationServer3D_method_get_debug_enabled>`
  663. Returns ``true`` when the NavigationServer has debug enabled.
  664. .. rst-class:: classref-item-separator
  665. ----
  666. .. _class_NavigationServer3D_method_get_maps:
  667. .. rst-class:: classref-method
  668. :ref:`Array<class_Array>`\[:ref:`RID<class_RID>`\] **get_maps**\ (\ ) |const| :ref:`๐Ÿ”—<class_NavigationServer3D_method_get_maps>`
  669. Returns all created navigation map :ref:`RID<class_RID>`\ s on the NavigationServer. This returns both 2D and 3D created navigation maps as there is technically no distinction between them.
  670. .. rst-class:: classref-item-separator
  671. ----
  672. .. _class_NavigationServer3D_method_get_process_info:
  673. .. rst-class:: classref-method
  674. :ref:`int<class_int>` **get_process_info**\ (\ process_info\: :ref:`ProcessInfo<enum_NavigationServer3D_ProcessInfo>`\ ) |const| :ref:`๐Ÿ”—<class_NavigationServer3D_method_get_process_info>`
  675. Returns information about the current state of the NavigationServer.
  676. .. rst-class:: classref-item-separator
  677. ----
  678. .. _class_NavigationServer3D_method_is_baking_navigation_mesh:
  679. .. rst-class:: classref-method
  680. :ref:`bool<class_bool>` **is_baking_navigation_mesh**\ (\ navigation_mesh\: :ref:`NavigationMesh<class_NavigationMesh>`\ ) |const| :ref:`๐Ÿ”—<class_NavigationServer3D_method_is_baking_navigation_mesh>`
  681. Returns ``true`` when the provided navigation mesh is being baked on a background thread.
  682. .. rst-class:: classref-item-separator
  683. ----
  684. .. _class_NavigationServer3D_method_link_create:
  685. .. rst-class:: classref-method
  686. :ref:`RID<class_RID>` **link_create**\ (\ ) :ref:`๐Ÿ”—<class_NavigationServer3D_method_link_create>`
  687. Create a new link between two positions on a map.
  688. .. rst-class:: classref-item-separator
  689. ----
  690. .. _class_NavigationServer3D_method_link_get_enabled:
  691. .. rst-class:: classref-method
  692. :ref:`bool<class_bool>` **link_get_enabled**\ (\ link\: :ref:`RID<class_RID>`\ ) |const| :ref:`๐Ÿ”—<class_NavigationServer3D_method_link_get_enabled>`
  693. Returns ``true`` if the specified ``link`` is enabled.
  694. .. rst-class:: classref-item-separator
  695. ----
  696. .. _class_NavigationServer3D_method_link_get_end_position:
  697. .. rst-class:: classref-method
  698. :ref:`Vector3<class_Vector3>` **link_get_end_position**\ (\ link\: :ref:`RID<class_RID>`\ ) |const| :ref:`๐Ÿ”—<class_NavigationServer3D_method_link_get_end_position>`
  699. Returns the ending position of this ``link``.
  700. .. rst-class:: classref-item-separator
  701. ----
  702. .. _class_NavigationServer3D_method_link_get_enter_cost:
  703. .. rst-class:: classref-method
  704. :ref:`float<class_float>` **link_get_enter_cost**\ (\ link\: :ref:`RID<class_RID>`\ ) |const| :ref:`๐Ÿ”—<class_NavigationServer3D_method_link_get_enter_cost>`
  705. Returns the enter cost of this ``link``.
  706. .. rst-class:: classref-item-separator
  707. ----
  708. .. _class_NavigationServer3D_method_link_get_iteration_id:
  709. .. rst-class:: classref-method
  710. :ref:`int<class_int>` **link_get_iteration_id**\ (\ link\: :ref:`RID<class_RID>`\ ) |const| :ref:`๐Ÿ”—<class_NavigationServer3D_method_link_get_iteration_id>`
  711. Returns the current iteration ID of the navigation link. Every time the navigation link changes and synchronizes, the iteration ID increases. An iteration ID of ``0`` means the navigation link has never synchronized.
  712. \ **Note:** The iteration ID will wrap around to ``1`` after reaching its range limit.
  713. .. rst-class:: classref-item-separator
  714. ----
  715. .. _class_NavigationServer3D_method_link_get_map:
  716. .. rst-class:: classref-method
  717. :ref:`RID<class_RID>` **link_get_map**\ (\ link\: :ref:`RID<class_RID>`\ ) |const| :ref:`๐Ÿ”—<class_NavigationServer3D_method_link_get_map>`
  718. Returns the navigation map :ref:`RID<class_RID>` the requested ``link`` is currently assigned to.
  719. .. rst-class:: classref-item-separator
  720. ----
  721. .. _class_NavigationServer3D_method_link_get_navigation_layers:
  722. .. rst-class:: classref-method
  723. :ref:`int<class_int>` **link_get_navigation_layers**\ (\ link\: :ref:`RID<class_RID>`\ ) |const| :ref:`๐Ÿ”—<class_NavigationServer3D_method_link_get_navigation_layers>`
  724. Returns the navigation layers for this ``link``.
  725. .. rst-class:: classref-item-separator
  726. ----
  727. .. _class_NavigationServer3D_method_link_get_owner_id:
  728. .. rst-class:: classref-method
  729. :ref:`int<class_int>` **link_get_owner_id**\ (\ link\: :ref:`RID<class_RID>`\ ) |const| :ref:`๐Ÿ”—<class_NavigationServer3D_method_link_get_owner_id>`
  730. Returns the ``ObjectID`` of the object which manages this link.
  731. .. rst-class:: classref-item-separator
  732. ----
  733. .. _class_NavigationServer3D_method_link_get_start_position:
  734. .. rst-class:: classref-method
  735. :ref:`Vector3<class_Vector3>` **link_get_start_position**\ (\ link\: :ref:`RID<class_RID>`\ ) |const| :ref:`๐Ÿ”—<class_NavigationServer3D_method_link_get_start_position>`
  736. Returns the starting position of this ``link``.
  737. .. rst-class:: classref-item-separator
  738. ----
  739. .. _class_NavigationServer3D_method_link_get_travel_cost:
  740. .. rst-class:: classref-method
  741. :ref:`float<class_float>` **link_get_travel_cost**\ (\ link\: :ref:`RID<class_RID>`\ ) |const| :ref:`๐Ÿ”—<class_NavigationServer3D_method_link_get_travel_cost>`
  742. Returns the travel cost of this ``link``.
  743. .. rst-class:: classref-item-separator
  744. ----
  745. .. _class_NavigationServer3D_method_link_is_bidirectional:
  746. .. rst-class:: classref-method
  747. :ref:`bool<class_bool>` **link_is_bidirectional**\ (\ link\: :ref:`RID<class_RID>`\ ) |const| :ref:`๐Ÿ”—<class_NavigationServer3D_method_link_is_bidirectional>`
  748. Returns whether this ``link`` can be travelled in both directions.
  749. .. rst-class:: classref-item-separator
  750. ----
  751. .. _class_NavigationServer3D_method_link_set_bidirectional:
  752. .. rst-class:: classref-method
  753. |void| **link_set_bidirectional**\ (\ link\: :ref:`RID<class_RID>`, bidirectional\: :ref:`bool<class_bool>`\ ) :ref:`๐Ÿ”—<class_NavigationServer3D_method_link_set_bidirectional>`
  754. Sets whether this ``link`` can be travelled in both directions.
  755. .. rst-class:: classref-item-separator
  756. ----
  757. .. _class_NavigationServer3D_method_link_set_enabled:
  758. .. rst-class:: classref-method
  759. |void| **link_set_enabled**\ (\ link\: :ref:`RID<class_RID>`, enabled\: :ref:`bool<class_bool>`\ ) :ref:`๐Ÿ”—<class_NavigationServer3D_method_link_set_enabled>`
  760. If ``enabled`` is ``true``, the specified ``link`` will contribute to its current navigation map.
  761. .. rst-class:: classref-item-separator
  762. ----
  763. .. _class_NavigationServer3D_method_link_set_end_position:
  764. .. rst-class:: classref-method
  765. |void| **link_set_end_position**\ (\ link\: :ref:`RID<class_RID>`, position\: :ref:`Vector3<class_Vector3>`\ ) :ref:`๐Ÿ”—<class_NavigationServer3D_method_link_set_end_position>`
  766. Sets the exit position for the ``link``.
  767. .. rst-class:: classref-item-separator
  768. ----
  769. .. _class_NavigationServer3D_method_link_set_enter_cost:
  770. .. rst-class:: classref-method
  771. |void| **link_set_enter_cost**\ (\ link\: :ref:`RID<class_RID>`, enter_cost\: :ref:`float<class_float>`\ ) :ref:`๐Ÿ”—<class_NavigationServer3D_method_link_set_enter_cost>`
  772. Sets the ``enter_cost`` for this ``link``.
  773. .. rst-class:: classref-item-separator
  774. ----
  775. .. _class_NavigationServer3D_method_link_set_map:
  776. .. rst-class:: classref-method
  777. |void| **link_set_map**\ (\ link\: :ref:`RID<class_RID>`, map\: :ref:`RID<class_RID>`\ ) :ref:`๐Ÿ”—<class_NavigationServer3D_method_link_set_map>`
  778. Sets the navigation map :ref:`RID<class_RID>` for the link.
  779. .. rst-class:: classref-item-separator
  780. ----
  781. .. _class_NavigationServer3D_method_link_set_navigation_layers:
  782. .. rst-class:: classref-method
  783. |void| **link_set_navigation_layers**\ (\ link\: :ref:`RID<class_RID>`, navigation_layers\: :ref:`int<class_int>`\ ) :ref:`๐Ÿ”—<class_NavigationServer3D_method_link_set_navigation_layers>`
  784. Set the links's navigation layers. This allows selecting links from a path request (when using :ref:`map_get_path()<class_NavigationServer3D_method_map_get_path>`).
  785. .. rst-class:: classref-item-separator
  786. ----
  787. .. _class_NavigationServer3D_method_link_set_owner_id:
  788. .. rst-class:: classref-method
  789. |void| **link_set_owner_id**\ (\ link\: :ref:`RID<class_RID>`, owner_id\: :ref:`int<class_int>`\ ) :ref:`๐Ÿ”—<class_NavigationServer3D_method_link_set_owner_id>`
  790. Set the ``ObjectID`` of the object which manages this link.
  791. .. rst-class:: classref-item-separator
  792. ----
  793. .. _class_NavigationServer3D_method_link_set_start_position:
  794. .. rst-class:: classref-method
  795. |void| **link_set_start_position**\ (\ link\: :ref:`RID<class_RID>`, position\: :ref:`Vector3<class_Vector3>`\ ) :ref:`๐Ÿ”—<class_NavigationServer3D_method_link_set_start_position>`
  796. Sets the entry position for this ``link``.
  797. .. rst-class:: classref-item-separator
  798. ----
  799. .. _class_NavigationServer3D_method_link_set_travel_cost:
  800. .. rst-class:: classref-method
  801. |void| **link_set_travel_cost**\ (\ link\: :ref:`RID<class_RID>`, travel_cost\: :ref:`float<class_float>`\ ) :ref:`๐Ÿ”—<class_NavigationServer3D_method_link_set_travel_cost>`
  802. Sets the ``travel_cost`` for this ``link``.
  803. .. rst-class:: classref-item-separator
  804. ----
  805. .. _class_NavigationServer3D_method_map_create:
  806. .. rst-class:: classref-method
  807. :ref:`RID<class_RID>` **map_create**\ (\ ) :ref:`๐Ÿ”—<class_NavigationServer3D_method_map_create>`
  808. Create a new map.
  809. .. rst-class:: classref-item-separator
  810. ----
  811. .. _class_NavigationServer3D_method_map_force_update:
  812. .. rst-class:: classref-method
  813. |void| **map_force_update**\ (\ map\: :ref:`RID<class_RID>`\ ) :ref:`๐Ÿ”—<class_NavigationServer3D_method_map_force_update>`
  814. **Deprecated:** This method is no longer supported, as it is incompatible with asynchronous updates. It can only be used in a single-threaded context, at your own risk.
  815. This function immediately forces synchronization of the specified navigation ``map`` :ref:`RID<class_RID>`. By default navigation maps are only synchronized at the end of each physics frame. This function can be used to immediately (re)calculate all the navigation meshes and region connections of the navigation map. This makes it possible to query a navigation path for a changed map immediately and in the same frame (multiple times if needed).
  816. Due to technical restrictions the current NavigationServer command queue will be flushed. This means all already queued update commands for this physics frame will be executed, even those intended for other maps, regions and agents not part of the specified map. The expensive computation of the navigation meshes and region connections of a map will only be done for the specified map. Other maps will receive the normal synchronization at the end of the physics frame. Should the specified map receive changes after the forced update it will update again as well when the other maps receive their update.
  817. Avoidance processing and dispatch of the ``safe_velocity`` signals is unaffected by this function and continues to happen for all maps and agents at the end of the physics frame.
  818. \ **Note:** With great power comes great responsibility. This function should only be used by users that really know what they are doing and have a good reason for it. Forcing an immediate update of a navigation map requires locking the NavigationServer and flushing the entire NavigationServer command queue. Not only can this severely impact the performance of a game but it can also introduce bugs if used inappropriately without much foresight.
  819. .. rst-class:: classref-item-separator
  820. ----
  821. .. _class_NavigationServer3D_method_map_get_agents:
  822. .. rst-class:: classref-method
  823. :ref:`Array<class_Array>`\[:ref:`RID<class_RID>`\] **map_get_agents**\ (\ map\: :ref:`RID<class_RID>`\ ) |const| :ref:`๐Ÿ”—<class_NavigationServer3D_method_map_get_agents>`
  824. Returns all navigation agents :ref:`RID<class_RID>`\ s that are currently assigned to the requested navigation ``map``.
  825. .. rst-class:: classref-item-separator
  826. ----
  827. .. _class_NavigationServer3D_method_map_get_cell_height:
  828. .. rst-class:: classref-method
  829. :ref:`float<class_float>` **map_get_cell_height**\ (\ map\: :ref:`RID<class_RID>`\ ) |const| :ref:`๐Ÿ”—<class_NavigationServer3D_method_map_get_cell_height>`
  830. Returns the map cell height used to rasterize the navigation mesh vertices on the Y axis.
  831. .. rst-class:: classref-item-separator
  832. ----
  833. .. _class_NavigationServer3D_method_map_get_cell_size:
  834. .. rst-class:: classref-method
  835. :ref:`float<class_float>` **map_get_cell_size**\ (\ map\: :ref:`RID<class_RID>`\ ) |const| :ref:`๐Ÿ”—<class_NavigationServer3D_method_map_get_cell_size>`
  836. Returns the map cell size used to rasterize the navigation mesh vertices on the XZ plane.
  837. .. rst-class:: classref-item-separator
  838. ----
  839. .. _class_NavigationServer3D_method_map_get_closest_point:
  840. .. rst-class:: classref-method
  841. :ref:`Vector3<class_Vector3>` **map_get_closest_point**\ (\ map\: :ref:`RID<class_RID>`, to_point\: :ref:`Vector3<class_Vector3>`\ ) |const| :ref:`๐Ÿ”—<class_NavigationServer3D_method_map_get_closest_point>`
  842. Returns the navigation mesh surface point closest to the provided ``to_point`` on the navigation ``map``.
  843. .. rst-class:: classref-item-separator
  844. ----
  845. .. _class_NavigationServer3D_method_map_get_closest_point_normal:
  846. .. rst-class:: classref-method
  847. :ref:`Vector3<class_Vector3>` **map_get_closest_point_normal**\ (\ map\: :ref:`RID<class_RID>`, to_point\: :ref:`Vector3<class_Vector3>`\ ) |const| :ref:`๐Ÿ”—<class_NavigationServer3D_method_map_get_closest_point_normal>`
  848. Returns the navigation mesh surface normal closest to the provided ``to_point`` on the navigation ``map``.
  849. .. rst-class:: classref-item-separator
  850. ----
  851. .. _class_NavigationServer3D_method_map_get_closest_point_owner:
  852. .. rst-class:: classref-method
  853. :ref:`RID<class_RID>` **map_get_closest_point_owner**\ (\ map\: :ref:`RID<class_RID>`, to_point\: :ref:`Vector3<class_Vector3>`\ ) |const| :ref:`๐Ÿ”—<class_NavigationServer3D_method_map_get_closest_point_owner>`
  854. Returns the owner region RID for the navigation mesh surface point closest to the provided ``to_point`` on the navigation ``map``.
  855. .. rst-class:: classref-item-separator
  856. ----
  857. .. _class_NavigationServer3D_method_map_get_closest_point_to_segment:
  858. .. rst-class:: classref-method
  859. :ref:`Vector3<class_Vector3>` **map_get_closest_point_to_segment**\ (\ map\: :ref:`RID<class_RID>`, start\: :ref:`Vector3<class_Vector3>`, end\: :ref:`Vector3<class_Vector3>`, use_collision\: :ref:`bool<class_bool>` = false\ ) |const| :ref:`๐Ÿ”—<class_NavigationServer3D_method_map_get_closest_point_to_segment>`
  860. Returns the navigation mesh surface point closest to the provided ``start`` and ``end`` segment on the navigation ``map``.
  861. If ``use_collision`` is ``true``, a closest point test is only done when the segment intersects with the navigation mesh surface.
  862. .. rst-class:: classref-item-separator
  863. ----
  864. .. _class_NavigationServer3D_method_map_get_edge_connection_margin:
  865. .. rst-class:: classref-method
  866. :ref:`float<class_float>` **map_get_edge_connection_margin**\ (\ map\: :ref:`RID<class_RID>`\ ) |const| :ref:`๐Ÿ”—<class_NavigationServer3D_method_map_get_edge_connection_margin>`
  867. Returns the edge connection margin of the map. This distance is the minimum vertex distance needed to connect two edges from different regions.
  868. .. rst-class:: classref-item-separator
  869. ----
  870. .. _class_NavigationServer3D_method_map_get_iteration_id:
  871. .. rst-class:: classref-method
  872. :ref:`int<class_int>` **map_get_iteration_id**\ (\ map\: :ref:`RID<class_RID>`\ ) |const| :ref:`๐Ÿ”—<class_NavigationServer3D_method_map_get_iteration_id>`
  873. Returns the current iteration id of the navigation map. Every time the navigation map changes and synchronizes the iteration id increases. An iteration id of 0 means the navigation map has never synchronized.
  874. \ **Note:** The iteration id will wrap back to 1 after reaching its range limit.
  875. .. rst-class:: classref-item-separator
  876. ----
  877. .. _class_NavigationServer3D_method_map_get_link_connection_radius:
  878. .. rst-class:: classref-method
  879. :ref:`float<class_float>` **map_get_link_connection_radius**\ (\ map\: :ref:`RID<class_RID>`\ ) |const| :ref:`๐Ÿ”—<class_NavigationServer3D_method_map_get_link_connection_radius>`
  880. Returns the link connection radius of the map. This distance is the maximum range any link will search for navigation mesh polygons to connect to.
  881. .. rst-class:: classref-item-separator
  882. ----
  883. .. _class_NavigationServer3D_method_map_get_links:
  884. .. rst-class:: classref-method
  885. :ref:`Array<class_Array>`\[:ref:`RID<class_RID>`\] **map_get_links**\ (\ map\: :ref:`RID<class_RID>`\ ) |const| :ref:`๐Ÿ”—<class_NavigationServer3D_method_map_get_links>`
  886. Returns all navigation link :ref:`RID<class_RID>`\ s that are currently assigned to the requested navigation ``map``.
  887. .. rst-class:: classref-item-separator
  888. ----
  889. .. _class_NavigationServer3D_method_map_get_merge_rasterizer_cell_scale:
  890. .. rst-class:: classref-method
  891. :ref:`float<class_float>` **map_get_merge_rasterizer_cell_scale**\ (\ map\: :ref:`RID<class_RID>`\ ) |const| :ref:`๐Ÿ”—<class_NavigationServer3D_method_map_get_merge_rasterizer_cell_scale>`
  892. Returns map's internal merge rasterizer cell scale.
  893. .. rst-class:: classref-item-separator
  894. ----
  895. .. _class_NavigationServer3D_method_map_get_obstacles:
  896. .. rst-class:: classref-method
  897. :ref:`Array<class_Array>`\[:ref:`RID<class_RID>`\] **map_get_obstacles**\ (\ map\: :ref:`RID<class_RID>`\ ) |const| :ref:`๐Ÿ”—<class_NavigationServer3D_method_map_get_obstacles>`
  898. Returns all navigation obstacle :ref:`RID<class_RID>`\ s that are currently assigned to the requested navigation ``map``.
  899. .. rst-class:: classref-item-separator
  900. ----
  901. .. _class_NavigationServer3D_method_map_get_path:
  902. .. rst-class:: classref-method
  903. :ref:`PackedVector3Array<class_PackedVector3Array>` **map_get_path**\ (\ map\: :ref:`RID<class_RID>`, origin\: :ref:`Vector3<class_Vector3>`, destination\: :ref:`Vector3<class_Vector3>`, optimize\: :ref:`bool<class_bool>`, navigation_layers\: :ref:`int<class_int>` = 1\ ) :ref:`๐Ÿ”—<class_NavigationServer3D_method_map_get_path>`
  904. Returns the navigation path to reach the destination from the origin. ``navigation_layers`` is a bitmask of all region navigation layers that are allowed to be in the path.
  905. .. rst-class:: classref-item-separator
  906. ----
  907. .. _class_NavigationServer3D_method_map_get_random_point:
  908. .. rst-class:: classref-method
  909. :ref:`Vector3<class_Vector3>` **map_get_random_point**\ (\ map\: :ref:`RID<class_RID>`, navigation_layers\: :ref:`int<class_int>`, uniformly\: :ref:`bool<class_bool>`\ ) |const| :ref:`๐Ÿ”—<class_NavigationServer3D_method_map_get_random_point>`
  910. Returns a random position picked from all map region polygons with matching ``navigation_layers``.
  911. If ``uniformly`` is ``true``, all map regions, polygons, and faces are weighted by their surface area (slower).
  912. If ``uniformly`` is ``false``, just a random region and a random polygon are picked (faster).
  913. .. rst-class:: classref-item-separator
  914. ----
  915. .. _class_NavigationServer3D_method_map_get_regions:
  916. .. rst-class:: classref-method
  917. :ref:`Array<class_Array>`\[:ref:`RID<class_RID>`\] **map_get_regions**\ (\ map\: :ref:`RID<class_RID>`\ ) |const| :ref:`๐Ÿ”—<class_NavigationServer3D_method_map_get_regions>`
  918. Returns all navigation regions :ref:`RID<class_RID>`\ s that are currently assigned to the requested navigation ``map``.
  919. .. rst-class:: classref-item-separator
  920. ----
  921. .. _class_NavigationServer3D_method_map_get_up:
  922. .. rst-class:: classref-method
  923. :ref:`Vector3<class_Vector3>` **map_get_up**\ (\ map\: :ref:`RID<class_RID>`\ ) |const| :ref:`๐Ÿ”—<class_NavigationServer3D_method_map_get_up>`
  924. Returns the map's up direction.
  925. .. rst-class:: classref-item-separator
  926. ----
  927. .. _class_NavigationServer3D_method_map_get_use_async_iterations:
  928. .. rst-class:: classref-method
  929. :ref:`bool<class_bool>` **map_get_use_async_iterations**\ (\ map\: :ref:`RID<class_RID>`\ ) |const| :ref:`๐Ÿ”—<class_NavigationServer3D_method_map_get_use_async_iterations>`
  930. Returns ``true`` if the ``map`` synchronization uses an async process that runs on a background thread.
  931. .. rst-class:: classref-item-separator
  932. ----
  933. .. _class_NavigationServer3D_method_map_get_use_edge_connections:
  934. .. rst-class:: classref-method
  935. :ref:`bool<class_bool>` **map_get_use_edge_connections**\ (\ map\: :ref:`RID<class_RID>`\ ) |const| :ref:`๐Ÿ”—<class_NavigationServer3D_method_map_get_use_edge_connections>`
  936. Returns ``true`` if the navigation ``map`` allows navigation regions to use edge connections to connect with other navigation regions within proximity of the navigation map edge connection margin.
  937. .. rst-class:: classref-item-separator
  938. ----
  939. .. _class_NavigationServer3D_method_map_is_active:
  940. .. rst-class:: classref-method
  941. :ref:`bool<class_bool>` **map_is_active**\ (\ map\: :ref:`RID<class_RID>`\ ) |const| :ref:`๐Ÿ”—<class_NavigationServer3D_method_map_is_active>`
  942. Returns ``true`` if the map is active.
  943. .. rst-class:: classref-item-separator
  944. ----
  945. .. _class_NavigationServer3D_method_map_set_active:
  946. .. rst-class:: classref-method
  947. |void| **map_set_active**\ (\ map\: :ref:`RID<class_RID>`, active\: :ref:`bool<class_bool>`\ ) :ref:`๐Ÿ”—<class_NavigationServer3D_method_map_set_active>`
  948. Sets the map active.
  949. .. rst-class:: classref-item-separator
  950. ----
  951. .. _class_NavigationServer3D_method_map_set_cell_height:
  952. .. rst-class:: classref-method
  953. |void| **map_set_cell_height**\ (\ map\: :ref:`RID<class_RID>`, cell_height\: :ref:`float<class_float>`\ ) :ref:`๐Ÿ”—<class_NavigationServer3D_method_map_set_cell_height>`
  954. Sets the map cell height used to rasterize the navigation mesh vertices on the Y axis. Must match with the cell height of the used navigation meshes.
  955. .. rst-class:: classref-item-separator
  956. ----
  957. .. _class_NavigationServer3D_method_map_set_cell_size:
  958. .. rst-class:: classref-method
  959. |void| **map_set_cell_size**\ (\ map\: :ref:`RID<class_RID>`, cell_size\: :ref:`float<class_float>`\ ) :ref:`๐Ÿ”—<class_NavigationServer3D_method_map_set_cell_size>`
  960. Sets the map cell size used to rasterize the navigation mesh vertices on the XZ plane. Must match with the cell size of the used navigation meshes.
  961. .. rst-class:: classref-item-separator
  962. ----
  963. .. _class_NavigationServer3D_method_map_set_edge_connection_margin:
  964. .. rst-class:: classref-method
  965. |void| **map_set_edge_connection_margin**\ (\ map\: :ref:`RID<class_RID>`, margin\: :ref:`float<class_float>`\ ) :ref:`๐Ÿ”—<class_NavigationServer3D_method_map_set_edge_connection_margin>`
  966. Set the map edge connection margin used to weld the compatible region edges.
  967. .. rst-class:: classref-item-separator
  968. ----
  969. .. _class_NavigationServer3D_method_map_set_link_connection_radius:
  970. .. rst-class:: classref-method
  971. |void| **map_set_link_connection_radius**\ (\ map\: :ref:`RID<class_RID>`, radius\: :ref:`float<class_float>`\ ) :ref:`๐Ÿ”—<class_NavigationServer3D_method_map_set_link_connection_radius>`
  972. Set the map's link connection radius used to connect links to navigation polygons.
  973. .. rst-class:: classref-item-separator
  974. ----
  975. .. _class_NavigationServer3D_method_map_set_merge_rasterizer_cell_scale:
  976. .. rst-class:: classref-method
  977. |void| **map_set_merge_rasterizer_cell_scale**\ (\ map\: :ref:`RID<class_RID>`, scale\: :ref:`float<class_float>`\ ) :ref:`๐Ÿ”—<class_NavigationServer3D_method_map_set_merge_rasterizer_cell_scale>`
  978. Set the map's internal merge rasterizer cell scale used to control merging sensitivity.
  979. .. rst-class:: classref-item-separator
  980. ----
  981. .. _class_NavigationServer3D_method_map_set_up:
  982. .. rst-class:: classref-method
  983. |void| **map_set_up**\ (\ map\: :ref:`RID<class_RID>`, up\: :ref:`Vector3<class_Vector3>`\ ) :ref:`๐Ÿ”—<class_NavigationServer3D_method_map_set_up>`
  984. Sets the map up direction.
  985. .. rst-class:: classref-item-separator
  986. ----
  987. .. _class_NavigationServer3D_method_map_set_use_async_iterations:
  988. .. rst-class:: classref-method
  989. |void| **map_set_use_async_iterations**\ (\ map\: :ref:`RID<class_RID>`, enabled\: :ref:`bool<class_bool>`\ ) :ref:`๐Ÿ”—<class_NavigationServer3D_method_map_set_use_async_iterations>`
  990. If ``enabled`` is ``true`` the ``map`` synchronization uses an async process that runs on a background thread.
  991. .. rst-class:: classref-item-separator
  992. ----
  993. .. _class_NavigationServer3D_method_map_set_use_edge_connections:
  994. .. rst-class:: classref-method
  995. |void| **map_set_use_edge_connections**\ (\ map\: :ref:`RID<class_RID>`, enabled\: :ref:`bool<class_bool>`\ ) :ref:`๐Ÿ”—<class_NavigationServer3D_method_map_set_use_edge_connections>`
  996. Set the navigation ``map`` edge connection use. If ``enabled`` is ``true``, the navigation map allows navigation regions to use edge connections to connect with other navigation regions within proximity of the navigation map edge connection margin.
  997. .. rst-class:: classref-item-separator
  998. ----
  999. .. _class_NavigationServer3D_method_obstacle_create:
  1000. .. rst-class:: classref-method
  1001. :ref:`RID<class_RID>` **obstacle_create**\ (\ ) :ref:`๐Ÿ”—<class_NavigationServer3D_method_obstacle_create>`
  1002. Creates a new obstacle.
  1003. .. rst-class:: classref-item-separator
  1004. ----
  1005. .. _class_NavigationServer3D_method_obstacle_get_avoidance_enabled:
  1006. .. rst-class:: classref-method
  1007. :ref:`bool<class_bool>` **obstacle_get_avoidance_enabled**\ (\ obstacle\: :ref:`RID<class_RID>`\ ) |const| :ref:`๐Ÿ”—<class_NavigationServer3D_method_obstacle_get_avoidance_enabled>`
  1008. Returns ``true`` if the provided ``obstacle`` has avoidance enabled.
  1009. .. rst-class:: classref-item-separator
  1010. ----
  1011. .. _class_NavigationServer3D_method_obstacle_get_avoidance_layers:
  1012. .. rst-class:: classref-method
  1013. :ref:`int<class_int>` **obstacle_get_avoidance_layers**\ (\ obstacle\: :ref:`RID<class_RID>`\ ) |const| :ref:`๐Ÿ”—<class_NavigationServer3D_method_obstacle_get_avoidance_layers>`
  1014. Returns the ``avoidance_layers`` bitmask of the specified ``obstacle``.
  1015. .. rst-class:: classref-item-separator
  1016. ----
  1017. .. _class_NavigationServer3D_method_obstacle_get_height:
  1018. .. rst-class:: classref-method
  1019. :ref:`float<class_float>` **obstacle_get_height**\ (\ obstacle\: :ref:`RID<class_RID>`\ ) |const| :ref:`๐Ÿ”—<class_NavigationServer3D_method_obstacle_get_height>`
  1020. Returns the ``height`` of the specified ``obstacle``.
  1021. .. rst-class:: classref-item-separator
  1022. ----
  1023. .. _class_NavigationServer3D_method_obstacle_get_map:
  1024. .. rst-class:: classref-method
  1025. :ref:`RID<class_RID>` **obstacle_get_map**\ (\ obstacle\: :ref:`RID<class_RID>`\ ) |const| :ref:`๐Ÿ”—<class_NavigationServer3D_method_obstacle_get_map>`
  1026. Returns the navigation map :ref:`RID<class_RID>` the requested ``obstacle`` is currently assigned to.
  1027. .. rst-class:: classref-item-separator
  1028. ----
  1029. .. _class_NavigationServer3D_method_obstacle_get_paused:
  1030. .. rst-class:: classref-method
  1031. :ref:`bool<class_bool>` **obstacle_get_paused**\ (\ obstacle\: :ref:`RID<class_RID>`\ ) |const| :ref:`๐Ÿ”—<class_NavigationServer3D_method_obstacle_get_paused>`
  1032. Returns ``true`` if the specified ``obstacle`` is paused.
  1033. .. rst-class:: classref-item-separator
  1034. ----
  1035. .. _class_NavigationServer3D_method_obstacle_get_position:
  1036. .. rst-class:: classref-method
  1037. :ref:`Vector3<class_Vector3>` **obstacle_get_position**\ (\ obstacle\: :ref:`RID<class_RID>`\ ) |const| :ref:`๐Ÿ”—<class_NavigationServer3D_method_obstacle_get_position>`
  1038. Returns the position of the specified ``obstacle`` in world space.
  1039. .. rst-class:: classref-item-separator
  1040. ----
  1041. .. _class_NavigationServer3D_method_obstacle_get_radius:
  1042. .. rst-class:: classref-method
  1043. :ref:`float<class_float>` **obstacle_get_radius**\ (\ obstacle\: :ref:`RID<class_RID>`\ ) |const| :ref:`๐Ÿ”—<class_NavigationServer3D_method_obstacle_get_radius>`
  1044. Returns the radius of the specified dynamic ``obstacle``.
  1045. .. rst-class:: classref-item-separator
  1046. ----
  1047. .. _class_NavigationServer3D_method_obstacle_get_use_3d_avoidance:
  1048. .. rst-class:: classref-method
  1049. :ref:`bool<class_bool>` **obstacle_get_use_3d_avoidance**\ (\ obstacle\: :ref:`RID<class_RID>`\ ) |const| :ref:`๐Ÿ”—<class_NavigationServer3D_method_obstacle_get_use_3d_avoidance>`
  1050. Returns ``true`` if the provided ``obstacle`` uses avoidance in 3D space Vector3(x,y,z) instead of horizontal 2D Vector2(x,y) / Vector3(x,0.0,z).
  1051. .. rst-class:: classref-item-separator
  1052. ----
  1053. .. _class_NavigationServer3D_method_obstacle_get_velocity:
  1054. .. rst-class:: classref-method
  1055. :ref:`Vector3<class_Vector3>` **obstacle_get_velocity**\ (\ obstacle\: :ref:`RID<class_RID>`\ ) |const| :ref:`๐Ÿ”—<class_NavigationServer3D_method_obstacle_get_velocity>`
  1056. Returns the velocity of the specified dynamic ``obstacle``.
  1057. .. rst-class:: classref-item-separator
  1058. ----
  1059. .. _class_NavigationServer3D_method_obstacle_get_vertices:
  1060. .. rst-class:: classref-method
  1061. :ref:`PackedVector3Array<class_PackedVector3Array>` **obstacle_get_vertices**\ (\ obstacle\: :ref:`RID<class_RID>`\ ) |const| :ref:`๐Ÿ”—<class_NavigationServer3D_method_obstacle_get_vertices>`
  1062. Returns the outline vertices for the specified ``obstacle``.
  1063. .. rst-class:: classref-item-separator
  1064. ----
  1065. .. _class_NavigationServer3D_method_obstacle_set_avoidance_enabled:
  1066. .. rst-class:: classref-method
  1067. |void| **obstacle_set_avoidance_enabled**\ (\ obstacle\: :ref:`RID<class_RID>`, enabled\: :ref:`bool<class_bool>`\ ) :ref:`๐Ÿ”—<class_NavigationServer3D_method_obstacle_set_avoidance_enabled>`
  1068. If ``enabled`` is ``true``, the provided ``obstacle`` affects avoidance using agents.
  1069. .. rst-class:: classref-item-separator
  1070. ----
  1071. .. _class_NavigationServer3D_method_obstacle_set_avoidance_layers:
  1072. .. rst-class:: classref-method
  1073. |void| **obstacle_set_avoidance_layers**\ (\ obstacle\: :ref:`RID<class_RID>`, layers\: :ref:`int<class_int>`\ ) :ref:`๐Ÿ”—<class_NavigationServer3D_method_obstacle_set_avoidance_layers>`
  1074. Set the obstacles's ``avoidance_layers`` bitmask.
  1075. .. rst-class:: classref-item-separator
  1076. ----
  1077. .. _class_NavigationServer3D_method_obstacle_set_height:
  1078. .. rst-class:: classref-method
  1079. |void| **obstacle_set_height**\ (\ obstacle\: :ref:`RID<class_RID>`, height\: :ref:`float<class_float>`\ ) :ref:`๐Ÿ”—<class_NavigationServer3D_method_obstacle_set_height>`
  1080. Sets the ``height`` for the ``obstacle``. In 3D agents will ignore obstacles that are above or below them while using 2D avoidance.
  1081. .. rst-class:: classref-item-separator
  1082. ----
  1083. .. _class_NavigationServer3D_method_obstacle_set_map:
  1084. .. rst-class:: classref-method
  1085. |void| **obstacle_set_map**\ (\ obstacle\: :ref:`RID<class_RID>`, map\: :ref:`RID<class_RID>`\ ) :ref:`๐Ÿ”—<class_NavigationServer3D_method_obstacle_set_map>`
  1086. Assigns the ``obstacle`` to a navigation map.
  1087. .. rst-class:: classref-item-separator
  1088. ----
  1089. .. _class_NavigationServer3D_method_obstacle_set_paused:
  1090. .. rst-class:: classref-method
  1091. |void| **obstacle_set_paused**\ (\ obstacle\: :ref:`RID<class_RID>`, paused\: :ref:`bool<class_bool>`\ ) :ref:`๐Ÿ”—<class_NavigationServer3D_method_obstacle_set_paused>`
  1092. If ``paused`` is ``true`` the specified ``obstacle`` will not be processed. For example, it will no longer affect avoidance velocities.
  1093. .. rst-class:: classref-item-separator
  1094. ----
  1095. .. _class_NavigationServer3D_method_obstacle_set_position:
  1096. .. rst-class:: classref-method
  1097. |void| **obstacle_set_position**\ (\ obstacle\: :ref:`RID<class_RID>`, position\: :ref:`Vector3<class_Vector3>`\ ) :ref:`๐Ÿ”—<class_NavigationServer3D_method_obstacle_set_position>`
  1098. Updates the ``position`` in world space for the ``obstacle``.
  1099. .. rst-class:: classref-item-separator
  1100. ----
  1101. .. _class_NavigationServer3D_method_obstacle_set_radius:
  1102. .. rst-class:: classref-method
  1103. |void| **obstacle_set_radius**\ (\ obstacle\: :ref:`RID<class_RID>`, radius\: :ref:`float<class_float>`\ ) :ref:`๐Ÿ”—<class_NavigationServer3D_method_obstacle_set_radius>`
  1104. Sets the radius of the dynamic obstacle.
  1105. .. rst-class:: classref-item-separator
  1106. ----
  1107. .. _class_NavigationServer3D_method_obstacle_set_use_3d_avoidance:
  1108. .. rst-class:: classref-method
  1109. |void| **obstacle_set_use_3d_avoidance**\ (\ obstacle\: :ref:`RID<class_RID>`, enabled\: :ref:`bool<class_bool>`\ ) :ref:`๐Ÿ”—<class_NavigationServer3D_method_obstacle_set_use_3d_avoidance>`
  1110. Sets if the ``obstacle`` uses the 2D avoidance or the 3D avoidance while avoidance is enabled.
  1111. .. rst-class:: classref-item-separator
  1112. ----
  1113. .. _class_NavigationServer3D_method_obstacle_set_velocity:
  1114. .. rst-class:: classref-method
  1115. |void| **obstacle_set_velocity**\ (\ obstacle\: :ref:`RID<class_RID>`, velocity\: :ref:`Vector3<class_Vector3>`\ ) :ref:`๐Ÿ”—<class_NavigationServer3D_method_obstacle_set_velocity>`
  1116. Sets ``velocity`` of the dynamic ``obstacle``. Allows other agents to better predict the movement of the dynamic obstacle. Only works in combination with the radius of the obstacle.
  1117. .. rst-class:: classref-item-separator
  1118. ----
  1119. .. _class_NavigationServer3D_method_obstacle_set_vertices:
  1120. .. rst-class:: classref-method
  1121. |void| **obstacle_set_vertices**\ (\ obstacle\: :ref:`RID<class_RID>`, vertices\: :ref:`PackedVector3Array<class_PackedVector3Array>`\ ) :ref:`๐Ÿ”—<class_NavigationServer3D_method_obstacle_set_vertices>`
  1122. Sets the outline vertices for the obstacle. If the vertices are winded in clockwise order agents will be pushed in by the obstacle, else they will be pushed out.
  1123. .. rst-class:: classref-item-separator
  1124. ----
  1125. .. _class_NavigationServer3D_method_parse_source_geometry_data:
  1126. .. rst-class:: classref-method
  1127. |void| **parse_source_geometry_data**\ (\ navigation_mesh\: :ref:`NavigationMesh<class_NavigationMesh>`, source_geometry_data\: :ref:`NavigationMeshSourceGeometryData3D<class_NavigationMeshSourceGeometryData3D>`, root_node\: :ref:`Node<class_Node>`, callback\: :ref:`Callable<class_Callable>` = Callable()\ ) :ref:`๐Ÿ”—<class_NavigationServer3D_method_parse_source_geometry_data>`
  1128. Parses the :ref:`SceneTree<class_SceneTree>` for source geometry according to the properties of ``navigation_mesh``. Updates the provided ``source_geometry_data`` resource with the resulting data. The resource can then be used to bake a navigation mesh with :ref:`bake_from_source_geometry_data()<class_NavigationServer3D_method_bake_from_source_geometry_data>`. After the process is finished the optional ``callback`` will be called.
  1129. \ **Note:** This function needs to run on the main thread or with a deferred call as the SceneTree is not thread-safe.
  1130. \ **Performance:** While convenient, reading data arrays from :ref:`Mesh<class_Mesh>` resources can affect the frame rate negatively. The data needs to be received from the GPU, stalling the :ref:`RenderingServer<class_RenderingServer>` in the process. For performance prefer the use of e.g. collision shapes or creating the data arrays entirely in code.
  1131. .. rst-class:: classref-item-separator
  1132. ----
  1133. .. _class_NavigationServer3D_method_query_path:
  1134. .. rst-class:: classref-method
  1135. |void| **query_path**\ (\ parameters\: :ref:`NavigationPathQueryParameters3D<class_NavigationPathQueryParameters3D>`, result\: :ref:`NavigationPathQueryResult3D<class_NavigationPathQueryResult3D>`, callback\: :ref:`Callable<class_Callable>` = Callable()\ ) :ref:`๐Ÿ”—<class_NavigationServer3D_method_query_path>`
  1136. Queries a path in a given navigation map. Start and target position and other parameters are defined through :ref:`NavigationPathQueryParameters3D<class_NavigationPathQueryParameters3D>`. Updates the provided :ref:`NavigationPathQueryResult3D<class_NavigationPathQueryResult3D>` result object with the path among other results requested by the query. After the process is finished the optional ``callback`` will be called.
  1137. .. rst-class:: classref-item-separator
  1138. ----
  1139. .. _class_NavigationServer3D_method_region_bake_navigation_mesh:
  1140. .. rst-class:: classref-method
  1141. |void| **region_bake_navigation_mesh**\ (\ navigation_mesh\: :ref:`NavigationMesh<class_NavigationMesh>`, root_node\: :ref:`Node<class_Node>`\ ) :ref:`๐Ÿ”—<class_NavigationServer3D_method_region_bake_navigation_mesh>`
  1142. **Deprecated:** This method is deprecated due to core threading changes. To upgrade existing code, first create a :ref:`NavigationMeshSourceGeometryData3D<class_NavigationMeshSourceGeometryData3D>` resource. Use this resource with :ref:`parse_source_geometry_data()<class_NavigationServer3D_method_parse_source_geometry_data>` to parse the :ref:`SceneTree<class_SceneTree>` for nodes that should contribute to the navigation mesh baking. The :ref:`SceneTree<class_SceneTree>` parsing needs to happen on the main thread. After the parsing is finished use the resource with :ref:`bake_from_source_geometry_data()<class_NavigationServer3D_method_bake_from_source_geometry_data>` to bake a navigation mesh.
  1143. Bakes the ``navigation_mesh`` with bake source geometry collected starting from the ``root_node``.
  1144. .. rst-class:: classref-item-separator
  1145. ----
  1146. .. _class_NavigationServer3D_method_region_create:
  1147. .. rst-class:: classref-method
  1148. :ref:`RID<class_RID>` **region_create**\ (\ ) :ref:`๐Ÿ”—<class_NavigationServer3D_method_region_create>`
  1149. Creates a new region.
  1150. .. rst-class:: classref-item-separator
  1151. ----
  1152. .. _class_NavigationServer3D_method_region_get_bounds:
  1153. .. rst-class:: classref-method
  1154. :ref:`AABB<class_AABB>` **region_get_bounds**\ (\ region\: :ref:`RID<class_RID>`\ ) |const| :ref:`๐Ÿ”—<class_NavigationServer3D_method_region_get_bounds>`
  1155. Returns the axis-aligned bounding box for the ``region``'s transformed navigation mesh.
  1156. .. rst-class:: classref-item-separator
  1157. ----
  1158. .. _class_NavigationServer3D_method_region_get_closest_point:
  1159. .. rst-class:: classref-method
  1160. :ref:`Vector3<class_Vector3>` **region_get_closest_point**\ (\ region\: :ref:`RID<class_RID>`, to_point\: :ref:`Vector3<class_Vector3>`\ ) |const| :ref:`๐Ÿ”—<class_NavigationServer3D_method_region_get_closest_point>`
  1161. Returns the navigation mesh surface point closest to the provided ``to_point`` on the navigation ``region``.
  1162. .. rst-class:: classref-item-separator
  1163. ----
  1164. .. _class_NavigationServer3D_method_region_get_closest_point_normal:
  1165. .. rst-class:: classref-method
  1166. :ref:`Vector3<class_Vector3>` **region_get_closest_point_normal**\ (\ region\: :ref:`RID<class_RID>`, to_point\: :ref:`Vector3<class_Vector3>`\ ) |const| :ref:`๐Ÿ”—<class_NavigationServer3D_method_region_get_closest_point_normal>`
  1167. Returns the navigation mesh surface normal closest to the provided ``to_point`` on the navigation ``region``.
  1168. .. rst-class:: classref-item-separator
  1169. ----
  1170. .. _class_NavigationServer3D_method_region_get_closest_point_to_segment:
  1171. .. rst-class:: classref-method
  1172. :ref:`Vector3<class_Vector3>` **region_get_closest_point_to_segment**\ (\ region\: :ref:`RID<class_RID>`, start\: :ref:`Vector3<class_Vector3>`, end\: :ref:`Vector3<class_Vector3>`, use_collision\: :ref:`bool<class_bool>` = false\ ) |const| :ref:`๐Ÿ”—<class_NavigationServer3D_method_region_get_closest_point_to_segment>`
  1173. Returns the navigation mesh surface point closest to the provided ``start`` and ``end`` segment on the navigation ``region``.
  1174. If ``use_collision`` is ``true``, a closest point test is only done when the segment intersects with the navigation mesh surface.
  1175. .. rst-class:: classref-item-separator
  1176. ----
  1177. .. _class_NavigationServer3D_method_region_get_connection_pathway_end:
  1178. .. rst-class:: classref-method
  1179. :ref:`Vector3<class_Vector3>` **region_get_connection_pathway_end**\ (\ region\: :ref:`RID<class_RID>`, connection\: :ref:`int<class_int>`\ ) |const| :ref:`๐Ÿ”—<class_NavigationServer3D_method_region_get_connection_pathway_end>`
  1180. Returns the ending point of a connection door. ``connection`` is an index between 0 and the return value of :ref:`region_get_connections_count()<class_NavigationServer3D_method_region_get_connections_count>`.
  1181. .. rst-class:: classref-item-separator
  1182. ----
  1183. .. _class_NavigationServer3D_method_region_get_connection_pathway_start:
  1184. .. rst-class:: classref-method
  1185. :ref:`Vector3<class_Vector3>` **region_get_connection_pathway_start**\ (\ region\: :ref:`RID<class_RID>`, connection\: :ref:`int<class_int>`\ ) |const| :ref:`๐Ÿ”—<class_NavigationServer3D_method_region_get_connection_pathway_start>`
  1186. Returns the starting point of a connection door. ``connection`` is an index between 0 and the return value of :ref:`region_get_connections_count()<class_NavigationServer3D_method_region_get_connections_count>`.
  1187. .. rst-class:: classref-item-separator
  1188. ----
  1189. .. _class_NavigationServer3D_method_region_get_connections_count:
  1190. .. rst-class:: classref-method
  1191. :ref:`int<class_int>` **region_get_connections_count**\ (\ region\: :ref:`RID<class_RID>`\ ) |const| :ref:`๐Ÿ”—<class_NavigationServer3D_method_region_get_connections_count>`
  1192. Returns how many connections this ``region`` has with other regions in the map.
  1193. .. rst-class:: classref-item-separator
  1194. ----
  1195. .. _class_NavigationServer3D_method_region_get_enabled:
  1196. .. rst-class:: classref-method
  1197. :ref:`bool<class_bool>` **region_get_enabled**\ (\ region\: :ref:`RID<class_RID>`\ ) |const| :ref:`๐Ÿ”—<class_NavigationServer3D_method_region_get_enabled>`
  1198. Returns ``true`` if the specified ``region`` is enabled.
  1199. .. rst-class:: classref-item-separator
  1200. ----
  1201. .. _class_NavigationServer3D_method_region_get_enter_cost:
  1202. .. rst-class:: classref-method
  1203. :ref:`float<class_float>` **region_get_enter_cost**\ (\ region\: :ref:`RID<class_RID>`\ ) |const| :ref:`๐Ÿ”—<class_NavigationServer3D_method_region_get_enter_cost>`
  1204. Returns the enter cost of this ``region``.
  1205. .. rst-class:: classref-item-separator
  1206. ----
  1207. .. _class_NavigationServer3D_method_region_get_iteration_id:
  1208. .. rst-class:: classref-method
  1209. :ref:`int<class_int>` **region_get_iteration_id**\ (\ region\: :ref:`RID<class_RID>`\ ) |const| :ref:`๐Ÿ”—<class_NavigationServer3D_method_region_get_iteration_id>`
  1210. Returns the current iteration ID of the navigation region. Every time the navigation region changes and synchronizes, the iteration ID increases. An iteration ID of ``0`` means the navigation region has never synchronized.
  1211. \ **Note:** The iteration ID will wrap around to ``1`` after reaching its range limit.
  1212. .. rst-class:: classref-item-separator
  1213. ----
  1214. .. _class_NavigationServer3D_method_region_get_map:
  1215. .. rst-class:: classref-method
  1216. :ref:`RID<class_RID>` **region_get_map**\ (\ region\: :ref:`RID<class_RID>`\ ) |const| :ref:`๐Ÿ”—<class_NavigationServer3D_method_region_get_map>`
  1217. Returns the navigation map :ref:`RID<class_RID>` the requested ``region`` is currently assigned to.
  1218. .. rst-class:: classref-item-separator
  1219. ----
  1220. .. _class_NavigationServer3D_method_region_get_navigation_layers:
  1221. .. rst-class:: classref-method
  1222. :ref:`int<class_int>` **region_get_navigation_layers**\ (\ region\: :ref:`RID<class_RID>`\ ) |const| :ref:`๐Ÿ”—<class_NavigationServer3D_method_region_get_navigation_layers>`
  1223. Returns the region's navigation layers.
  1224. .. rst-class:: classref-item-separator
  1225. ----
  1226. .. _class_NavigationServer3D_method_region_get_owner_id:
  1227. .. rst-class:: classref-method
  1228. :ref:`int<class_int>` **region_get_owner_id**\ (\ region\: :ref:`RID<class_RID>`\ ) |const| :ref:`๐Ÿ”—<class_NavigationServer3D_method_region_get_owner_id>`
  1229. Returns the ``ObjectID`` of the object which manages this region.
  1230. .. rst-class:: classref-item-separator
  1231. ----
  1232. .. _class_NavigationServer3D_method_region_get_random_point:
  1233. .. rst-class:: classref-method
  1234. :ref:`Vector3<class_Vector3>` **region_get_random_point**\ (\ region\: :ref:`RID<class_RID>`, navigation_layers\: :ref:`int<class_int>`, uniformly\: :ref:`bool<class_bool>`\ ) |const| :ref:`๐Ÿ”—<class_NavigationServer3D_method_region_get_random_point>`
  1235. Returns a random position picked from all region polygons with matching ``navigation_layers``.
  1236. If ``uniformly`` is ``true``, all region polygons and faces are weighted by their surface area (slower).
  1237. If ``uniformly`` is ``false``, just a random polygon and face is picked (faster).
  1238. .. rst-class:: classref-item-separator
  1239. ----
  1240. .. _class_NavigationServer3D_method_region_get_transform:
  1241. .. rst-class:: classref-method
  1242. :ref:`Transform3D<class_Transform3D>` **region_get_transform**\ (\ region\: :ref:`RID<class_RID>`\ ) |const| :ref:`๐Ÿ”—<class_NavigationServer3D_method_region_get_transform>`
  1243. Returns the global transformation of this ``region``.
  1244. .. rst-class:: classref-item-separator
  1245. ----
  1246. .. _class_NavigationServer3D_method_region_get_travel_cost:
  1247. .. rst-class:: classref-method
  1248. :ref:`float<class_float>` **region_get_travel_cost**\ (\ region\: :ref:`RID<class_RID>`\ ) |const| :ref:`๐Ÿ”—<class_NavigationServer3D_method_region_get_travel_cost>`
  1249. Returns the travel cost of this ``region``.
  1250. .. rst-class:: classref-item-separator
  1251. ----
  1252. .. _class_NavigationServer3D_method_region_get_use_async_iterations:
  1253. .. rst-class:: classref-method
  1254. :ref:`bool<class_bool>` **region_get_use_async_iterations**\ (\ region\: :ref:`RID<class_RID>`\ ) |const| :ref:`๐Ÿ”—<class_NavigationServer3D_method_region_get_use_async_iterations>`
  1255. Returns ``true`` if the ``region`` uses an async synchronization process that runs on a background thread.
  1256. .. rst-class:: classref-item-separator
  1257. ----
  1258. .. _class_NavigationServer3D_method_region_get_use_edge_connections:
  1259. .. rst-class:: classref-method
  1260. :ref:`bool<class_bool>` **region_get_use_edge_connections**\ (\ region\: :ref:`RID<class_RID>`\ ) |const| :ref:`๐Ÿ”—<class_NavigationServer3D_method_region_get_use_edge_connections>`
  1261. Returns ``true`` if the navigation ``region`` is set to use edge connections to connect with other navigation regions within proximity of the navigation map edge connection margin.
  1262. .. rst-class:: classref-item-separator
  1263. ----
  1264. .. _class_NavigationServer3D_method_region_owns_point:
  1265. .. rst-class:: classref-method
  1266. :ref:`bool<class_bool>` **region_owns_point**\ (\ region\: :ref:`RID<class_RID>`, point\: :ref:`Vector3<class_Vector3>`\ ) |const| :ref:`๐Ÿ”—<class_NavigationServer3D_method_region_owns_point>`
  1267. Returns ``true`` if the provided ``point`` in world space is currently owned by the provided navigation ``region``. Owned in this context means that one of the region's navigation mesh polygon faces has a possible position at the closest distance to this point compared to all other navigation meshes from other navigation regions that are also registered on the navigation map of the provided region.
  1268. If multiple navigation meshes have positions at equal distance the navigation region whose polygons are processed first wins the ownership. Polygons are processed in the same order that navigation regions were registered on the NavigationServer.
  1269. \ **Note:** If navigation meshes from different navigation regions overlap (which should be avoided in general) the result might not be what is expected.
  1270. .. rst-class:: classref-item-separator
  1271. ----
  1272. .. _class_NavigationServer3D_method_region_set_enabled:
  1273. .. rst-class:: classref-method
  1274. |void| **region_set_enabled**\ (\ region\: :ref:`RID<class_RID>`, enabled\: :ref:`bool<class_bool>`\ ) :ref:`๐Ÿ”—<class_NavigationServer3D_method_region_set_enabled>`
  1275. If ``enabled`` is ``true``, the specified ``region`` will contribute to its current navigation map.
  1276. .. rst-class:: classref-item-separator
  1277. ----
  1278. .. _class_NavigationServer3D_method_region_set_enter_cost:
  1279. .. rst-class:: classref-method
  1280. |void| **region_set_enter_cost**\ (\ region\: :ref:`RID<class_RID>`, enter_cost\: :ref:`float<class_float>`\ ) :ref:`๐Ÿ”—<class_NavigationServer3D_method_region_set_enter_cost>`
  1281. Sets the ``enter_cost`` for this ``region``.
  1282. .. rst-class:: classref-item-separator
  1283. ----
  1284. .. _class_NavigationServer3D_method_region_set_map:
  1285. .. rst-class:: classref-method
  1286. |void| **region_set_map**\ (\ region\: :ref:`RID<class_RID>`, map\: :ref:`RID<class_RID>`\ ) :ref:`๐Ÿ”—<class_NavigationServer3D_method_region_set_map>`
  1287. Sets the map for the region.
  1288. .. rst-class:: classref-item-separator
  1289. ----
  1290. .. _class_NavigationServer3D_method_region_set_navigation_layers:
  1291. .. rst-class:: classref-method
  1292. |void| **region_set_navigation_layers**\ (\ region\: :ref:`RID<class_RID>`, navigation_layers\: :ref:`int<class_int>`\ ) :ref:`๐Ÿ”—<class_NavigationServer3D_method_region_set_navigation_layers>`
  1293. Set the region's navigation layers. This allows selecting regions from a path request (when using :ref:`map_get_path()<class_NavigationServer3D_method_map_get_path>`).
  1294. .. rst-class:: classref-item-separator
  1295. ----
  1296. .. _class_NavigationServer3D_method_region_set_navigation_mesh:
  1297. .. rst-class:: classref-method
  1298. |void| **region_set_navigation_mesh**\ (\ region\: :ref:`RID<class_RID>`, navigation_mesh\: :ref:`NavigationMesh<class_NavigationMesh>`\ ) :ref:`๐Ÿ”—<class_NavigationServer3D_method_region_set_navigation_mesh>`
  1299. Sets the navigation mesh for the region.
  1300. .. rst-class:: classref-item-separator
  1301. ----
  1302. .. _class_NavigationServer3D_method_region_set_owner_id:
  1303. .. rst-class:: classref-method
  1304. |void| **region_set_owner_id**\ (\ region\: :ref:`RID<class_RID>`, owner_id\: :ref:`int<class_int>`\ ) :ref:`๐Ÿ”—<class_NavigationServer3D_method_region_set_owner_id>`
  1305. Set the ``ObjectID`` of the object which manages this region.
  1306. .. rst-class:: classref-item-separator
  1307. ----
  1308. .. _class_NavigationServer3D_method_region_set_transform:
  1309. .. rst-class:: classref-method
  1310. |void| **region_set_transform**\ (\ region\: :ref:`RID<class_RID>`, transform\: :ref:`Transform3D<class_Transform3D>`\ ) :ref:`๐Ÿ”—<class_NavigationServer3D_method_region_set_transform>`
  1311. Sets the global transformation for the region.
  1312. .. rst-class:: classref-item-separator
  1313. ----
  1314. .. _class_NavigationServer3D_method_region_set_travel_cost:
  1315. .. rst-class:: classref-method
  1316. |void| **region_set_travel_cost**\ (\ region\: :ref:`RID<class_RID>`, travel_cost\: :ref:`float<class_float>`\ ) :ref:`๐Ÿ”—<class_NavigationServer3D_method_region_set_travel_cost>`
  1317. Sets the ``travel_cost`` for this ``region``.
  1318. .. rst-class:: classref-item-separator
  1319. ----
  1320. .. _class_NavigationServer3D_method_region_set_use_async_iterations:
  1321. .. rst-class:: classref-method
  1322. |void| **region_set_use_async_iterations**\ (\ region\: :ref:`RID<class_RID>`, enabled\: :ref:`bool<class_bool>`\ ) :ref:`๐Ÿ”—<class_NavigationServer3D_method_region_set_use_async_iterations>`
  1323. If ``enabled`` is ``true`` the ``region`` uses an async synchronization process that runs on a background thread.
  1324. .. rst-class:: classref-item-separator
  1325. ----
  1326. .. _class_NavigationServer3D_method_region_set_use_edge_connections:
  1327. .. rst-class:: classref-method
  1328. |void| **region_set_use_edge_connections**\ (\ region\: :ref:`RID<class_RID>`, enabled\: :ref:`bool<class_bool>`\ ) :ref:`๐Ÿ”—<class_NavigationServer3D_method_region_set_use_edge_connections>`
  1329. If ``enabled`` is ``true``, the navigation ``region`` will use edge connections to connect with other navigation regions within proximity of the navigation map edge connection margin.
  1330. .. rst-class:: classref-item-separator
  1331. ----
  1332. .. _class_NavigationServer3D_method_set_active:
  1333. .. rst-class:: classref-method
  1334. |void| **set_active**\ (\ active\: :ref:`bool<class_bool>`\ ) :ref:`๐Ÿ”—<class_NavigationServer3D_method_set_active>`
  1335. Control activation of this server.
  1336. .. rst-class:: classref-item-separator
  1337. ----
  1338. .. _class_NavigationServer3D_method_set_debug_enabled:
  1339. .. rst-class:: classref-method
  1340. |void| **set_debug_enabled**\ (\ enabled\: :ref:`bool<class_bool>`\ ) :ref:`๐Ÿ”—<class_NavigationServer3D_method_set_debug_enabled>`
  1341. If ``true`` enables debug mode on the NavigationServer.
  1342. .. rst-class:: classref-item-separator
  1343. ----
  1344. .. _class_NavigationServer3D_method_simplify_path:
  1345. .. rst-class:: classref-method
  1346. :ref:`PackedVector3Array<class_PackedVector3Array>` **simplify_path**\ (\ path\: :ref:`PackedVector3Array<class_PackedVector3Array>`, epsilon\: :ref:`float<class_float>`\ ) :ref:`๐Ÿ”—<class_NavigationServer3D_method_simplify_path>`
  1347. Returns a simplified version of ``path`` with less critical path points removed. The simplification amount is in worlds units and controlled by ``epsilon``. The simplification uses a variant of Ramer-Douglas-Peucker algorithm for curve point decimation.
  1348. Path simplification can be helpful to mitigate various path following issues that can arise with certain agent types and script behaviors. E.g. "steering" agents or avoidance in "open fields".
  1349. .. rst-class:: classref-item-separator
  1350. ----
  1351. .. _class_NavigationServer3D_method_source_geometry_parser_create:
  1352. .. rst-class:: classref-method
  1353. :ref:`RID<class_RID>` **source_geometry_parser_create**\ (\ ) :ref:`๐Ÿ”—<class_NavigationServer3D_method_source_geometry_parser_create>`
  1354. Creates a new source geometry parser. If a :ref:`Callable<class_Callable>` is set for the parser with :ref:`source_geometry_parser_set_callback()<class_NavigationServer3D_method_source_geometry_parser_set_callback>` the callback will be called for every single node that gets parsed whenever :ref:`parse_source_geometry_data()<class_NavigationServer3D_method_parse_source_geometry_data>` is used.
  1355. .. rst-class:: classref-item-separator
  1356. ----
  1357. .. _class_NavigationServer3D_method_source_geometry_parser_set_callback:
  1358. .. rst-class:: classref-method
  1359. |void| **source_geometry_parser_set_callback**\ (\ parser\: :ref:`RID<class_RID>`, callback\: :ref:`Callable<class_Callable>`\ ) :ref:`๐Ÿ”—<class_NavigationServer3D_method_source_geometry_parser_set_callback>`
  1360. Sets the ``callback`` :ref:`Callable<class_Callable>` for the specific source geometry ``parser``. The :ref:`Callable<class_Callable>` will receive a call with the following parameters:
  1361. - ``navigation_mesh`` - The :ref:`NavigationMesh<class_NavigationMesh>` reference used to define the parse settings. Do NOT edit or add directly to the navigation mesh.
  1362. - ``source_geometry_data`` - The :ref:`NavigationMeshSourceGeometryData3D<class_NavigationMeshSourceGeometryData3D>` reference. Add custom source geometry for navigation mesh baking to this object.
  1363. - ``node`` - The :ref:`Node<class_Node>` that is parsed.
  1364. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  1365. .. |required| replace:: :abbr:`required (This method is required to be overridden when extending its base class.)`
  1366. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  1367. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  1368. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  1369. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  1370. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  1371. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
  1372. .. |void| replace:: :abbr:`void (No return value.)`