Make navigation mesh edge connections optional
Makes navigation mesh edge connections optional.
This commit is contained in:
@ -76,5 +76,8 @@
|
||||
<member name="travel_cost" type="float" setter="set_travel_cost" getter="get_travel_cost" default="1.0">
|
||||
When pathfinding moves inside this region's navigation mesh the traveled distances are multiplied with [code]travel_cost[/code] for determining the shortest path.
|
||||
</member>
|
||||
<member name="use_edge_connections" type="bool" setter="set_use_edge_connections" getter="get_use_edge_connections" default="true">
|
||||
If enabled the navigation region will use edge connections to connect with other navigation regions within proximity of the navigation map edge connection margin.
|
||||
</member>
|
||||
</members>
|
||||
</class>
|
||||
|
||||
@ -61,6 +61,9 @@
|
||||
<member name="travel_cost" type="float" setter="set_travel_cost" getter="get_travel_cost" default="1.0">
|
||||
When pathfinding moves inside this region's navigation mesh the traveled distances are multiplied with [code]travel_cost[/code] for determining the shortest path.
|
||||
</member>
|
||||
<member name="use_edge_connections" type="bool" setter="set_use_edge_connections" getter="get_use_edge_connections" default="true">
|
||||
If enabled the navigation region will use edge connections to connect with other navigation regions within proximity of the navigation map edge connection margin.
|
||||
</member>
|
||||
</members>
|
||||
<signals>
|
||||
<signal name="bake_finished">
|
||||
|
||||
@ -404,6 +404,13 @@
|
||||
Returns all navigation regions [RID]s that are currently assigned to the requested navigation [param map].
|
||||
</description>
|
||||
</method>
|
||||
<method name="map_get_use_edge_connections" qualifiers="const">
|
||||
<return type="bool" />
|
||||
<param index="0" name="map" type="RID" />
|
||||
<description>
|
||||
Returns whether the navigation [param map] allows navigation regions to use edge connections to connect with other navigation regions within proximity of the navigation map edge connection margin.
|
||||
</description>
|
||||
</method>
|
||||
<method name="map_is_active" qualifiers="const">
|
||||
<return type="bool" />
|
||||
<param index="0" name="map" type="RID" />
|
||||
@ -443,6 +450,14 @@
|
||||
Set the map's link connection radius used to connect links to navigation polygons.
|
||||
</description>
|
||||
</method>
|
||||
<method name="map_set_use_edge_connections">
|
||||
<return type="void" />
|
||||
<param index="0" name="map" type="RID" />
|
||||
<param index="1" name="enabled" type="bool" />
|
||||
<description>
|
||||
Set the navigation [param map] edge connection use. If [param enabled] 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.
|
||||
</description>
|
||||
</method>
|
||||
<method name="obstacle_create">
|
||||
<return type="RID" />
|
||||
<description>
|
||||
@ -559,6 +574,13 @@
|
||||
Returns the travel cost of this [param region].
|
||||
</description>
|
||||
</method>
|
||||
<method name="region_get_use_edge_connections" qualifiers="const">
|
||||
<return type="bool" />
|
||||
<param index="0" name="region" type="RID" />
|
||||
<description>
|
||||
Returns whether the navigation [param region] is set to use edge connections to connect with other navigation regions within proximity of the navigation map edge connection margin.
|
||||
</description>
|
||||
</method>
|
||||
<method name="region_owns_point" qualifiers="const">
|
||||
<return type="bool" />
|
||||
<param index="0" name="region" type="RID" />
|
||||
@ -625,6 +647,14 @@
|
||||
Sets the [param travel_cost] for this [param region].
|
||||
</description>
|
||||
</method>
|
||||
<method name="region_set_use_edge_connections">
|
||||
<return type="void" />
|
||||
<param index="0" name="region" type="RID" />
|
||||
<param index="1" name="enabled" type="bool" />
|
||||
<description>
|
||||
If [param enabled] the navigation [param region] will use edge connections to connect with other navigation regions within proximity of the navigation map edge connection margin.
|
||||
</description>
|
||||
</method>
|
||||
<method name="set_debug_enabled">
|
||||
<return type="void" />
|
||||
<param index="0" name="enabled" type="bool" />
|
||||
|
||||
@ -461,6 +461,13 @@
|
||||
Returns the map's up direction.
|
||||
</description>
|
||||
</method>
|
||||
<method name="map_get_use_edge_connections" qualifiers="const">
|
||||
<return type="bool" />
|
||||
<param index="0" name="map" type="RID" />
|
||||
<description>
|
||||
Returns true if the navigation [param map] allows navigation regions to use edge connections to connect with other navigation regions within proximity of the navigation map edge connection margin.
|
||||
</description>
|
||||
</method>
|
||||
<method name="map_is_active" qualifiers="const">
|
||||
<return type="bool" />
|
||||
<param index="0" name="map" type="RID" />
|
||||
@ -508,6 +515,14 @@
|
||||
Sets the map up direction.
|
||||
</description>
|
||||
</method>
|
||||
<method name="map_set_use_edge_connections">
|
||||
<return type="void" />
|
||||
<param index="0" name="map" type="RID" />
|
||||
<param index="1" name="enabled" type="bool" />
|
||||
<description>
|
||||
Set the navigation [param map] edge connection use. If [param enabled] 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.
|
||||
</description>
|
||||
</method>
|
||||
<method name="obstacle_create">
|
||||
<return type="RID" />
|
||||
<description>
|
||||
@ -641,6 +656,13 @@
|
||||
Returns the travel cost of this [param region].
|
||||
</description>
|
||||
</method>
|
||||
<method name="region_get_use_edge_connections" qualifiers="const">
|
||||
<return type="bool" />
|
||||
<param index="0" name="region" type="RID" />
|
||||
<description>
|
||||
Returns true if the navigation [param region] is set to use edge connections to connect with other navigation regions within proximity of the navigation map edge connection margin.
|
||||
</description>
|
||||
</method>
|
||||
<method name="region_owns_point" qualifiers="const">
|
||||
<return type="bool" />
|
||||
<param index="0" name="region" type="RID" />
|
||||
@ -707,6 +729,14 @@
|
||||
Sets the [param travel_cost] for this [param region].
|
||||
</description>
|
||||
</method>
|
||||
<method name="region_set_use_edge_connections">
|
||||
<return type="void" />
|
||||
<param index="0" name="region" type="RID" />
|
||||
<param index="1" name="enabled" type="bool" />
|
||||
<description>
|
||||
If [param enabled] the navigation [param region] will use edge connections to connect with other navigation regions within proximity of the navigation map edge connection margin.
|
||||
</description>
|
||||
</method>
|
||||
<method name="set_active">
|
||||
<return type="void" />
|
||||
<param index="0" name="active" type="bool" />
|
||||
|
||||
@ -1915,6 +1915,9 @@
|
||||
<member name="navigation/2d/default_link_connection_radius" type="int" setter="" getter="" default="4">
|
||||
Default link connection radius for 2D navigation maps. See [method NavigationServer2D.map_set_link_connection_radius].
|
||||
</member>
|
||||
<member name="navigation/2d/use_edge_connections" type="bool" setter="" getter="" default="true">
|
||||
If enabled 2D navigation regions will use edge connections to connect with other navigation regions within proximity of the navigation map edge connection margin. This setting only affects World2D default navigation maps.
|
||||
</member>
|
||||
<member name="navigation/3d/default_cell_size" type="float" setter="" getter="" default="0.25">
|
||||
Default cell size for 3D navigation maps. See [method NavigationServer3D.map_set_cell_size].
|
||||
</member>
|
||||
@ -1924,6 +1927,9 @@
|
||||
<member name="navigation/3d/default_link_connection_radius" type="float" setter="" getter="" default="1.0">
|
||||
Default link connection radius for 3D navigation maps. See [method NavigationServer3D.map_set_link_connection_radius].
|
||||
</member>
|
||||
<member name="navigation/3d/use_edge_connections" type="bool" setter="" getter="" default="true">
|
||||
If enabled 3D navigation regions will use edge connections to connect with other navigation regions within proximity of the navigation map edge connection margin. This setting only affects World3D default navigation maps.
|
||||
</member>
|
||||
<member name="navigation/avoidance/thread_model/avoidance_use_high_priority_threads" type="bool" setter="" getter="" default="true">
|
||||
If enabled and avoidance calculations use multiple threads the threads run with high priority.
|
||||
</member>
|
||||
|
||||
Reference in New Issue
Block a user