Add getters to navigation servers
Add virtual functions and bind to navigation servers Implement getters Add documentation
This commit is contained in:
parent
1f5d4a62e9
commit
e7ee672120
14 changed files with 636 additions and 9 deletions
|
|
@ -31,6 +31,27 @@
|
|||
Return [code]true[/code] if the specified [param agent] uses avoidance.
|
||||
</description>
|
||||
</method>
|
||||
<method name="agent_get_avoidance_layers" qualifiers="const">
|
||||
<return type="int" />
|
||||
<param index="0" name="agent" type="RID" />
|
||||
<description>
|
||||
Returns the [code]avoidance_layers[/code] bitmask of the specified [param agent].
|
||||
</description>
|
||||
</method>
|
||||
<method name="agent_get_avoidance_mask" qualifiers="const">
|
||||
<return type="int" />
|
||||
<param index="0" name="agent" type="RID" />
|
||||
<description>
|
||||
Returns the [code]avoidance_mask[/code] bitmask of the specified [param agent].
|
||||
</description>
|
||||
</method>
|
||||
<method name="agent_get_avoidance_priority" qualifiers="const">
|
||||
<return type="float" />
|
||||
<param index="0" name="agent" type="RID" />
|
||||
<description>
|
||||
Returns the [code]avoidance_priority[/code] of the specified [param agent].
|
||||
</description>
|
||||
</method>
|
||||
<method name="agent_get_map" qualifiers="const">
|
||||
<return type="RID" />
|
||||
<param index="0" name="agent" type="RID" />
|
||||
|
|
@ -38,6 +59,27 @@
|
|||
Returns the navigation map [RID] the requested [param agent] is currently assigned to.
|
||||
</description>
|
||||
</method>
|
||||
<method name="agent_get_max_neighbors" qualifiers="const">
|
||||
<return type="int" />
|
||||
<param index="0" name="agent" type="RID" />
|
||||
<description>
|
||||
Returns the maximum number of other agents the specified [param agent] takes into account in the navigation.
|
||||
</description>
|
||||
</method>
|
||||
<method name="agent_get_max_speed" qualifiers="const">
|
||||
<return type="float" />
|
||||
<param index="0" name="agent" type="RID" />
|
||||
<description>
|
||||
Returns the maximum speed of the specified [param agent].
|
||||
</description>
|
||||
</method>
|
||||
<method name="agent_get_neighbor_distance" qualifiers="const">
|
||||
<return type="float" />
|
||||
<param index="0" name="agent" type="RID" />
|
||||
<description>
|
||||
Returns the maximum distance to other agents the specified [param agent] takes into account in the navigation.
|
||||
</description>
|
||||
</method>
|
||||
<method name="agent_get_paused" qualifiers="const">
|
||||
<return type="bool" />
|
||||
<param index="0" name="agent" type="RID" />
|
||||
|
|
@ -45,6 +87,48 @@
|
|||
Returns [code]true[/code] if the specified [param agent] is paused.
|
||||
</description>
|
||||
</method>
|
||||
<method name="agent_get_position" qualifiers="const">
|
||||
<return type="Vector2" />
|
||||
<param index="0" name="agent" type="RID" />
|
||||
<description>
|
||||
Returns the position of the specified [param agent] in world space.
|
||||
</description>
|
||||
</method>
|
||||
<method name="agent_get_radius" qualifiers="const">
|
||||
<return type="float" />
|
||||
<param index="0" name="agent" type="RID" />
|
||||
<description>
|
||||
Returns the radius of the specified [param agent].
|
||||
</description>
|
||||
</method>
|
||||
<method name="agent_get_time_horizon_agents" qualifiers="const">
|
||||
<return type="float" />
|
||||
<param index="0" name="agent" type="RID" />
|
||||
<description>
|
||||
Returns the minimal amount of time for which the specified [param agent]'s velocities that are computed by the simulation are safe with respect to other agents.
|
||||
</description>
|
||||
</method>
|
||||
<method name="agent_get_time_horizon_obstacles" qualifiers="const">
|
||||
<return type="float" />
|
||||
<param index="0" name="agent" type="RID" />
|
||||
<description>
|
||||
Returns the minimal amount of time for which the specified [param agent]'s velocities that are computed by the simulation are safe with respect to static avoidance obstacles.
|
||||
</description>
|
||||
</method>
|
||||
<method name="agent_get_velocity" qualifiers="const">
|
||||
<return type="Vector2" />
|
||||
<param index="0" name="agent" type="RID" />
|
||||
<description>
|
||||
Returns the velocity of the specified [param agent].
|
||||
</description>
|
||||
</method>
|
||||
<method name="agent_has_avoidance_callback" qualifiers="const">
|
||||
<return type="bool" />
|
||||
<param index="0" name="agent" type="RID" />
|
||||
<description>
|
||||
Return [code]true[/code] if the specified [param agent] has an avoidance callback.
|
||||
</description>
|
||||
</method>
|
||||
<method name="agent_is_map_changed" qualifiers="const">
|
||||
<return type="bool" />
|
||||
<param index="0" name="agent" type="RID" />
|
||||
|
|
@ -530,6 +614,13 @@
|
|||
Returns [code]true[/code] if the provided [param obstacle] has avoidance enabled.
|
||||
</description>
|
||||
</method>
|
||||
<method name="obstacle_get_avoidance_layers" qualifiers="const">
|
||||
<return type="int" />
|
||||
<param index="0" name="obstacle" type="RID" />
|
||||
<description>
|
||||
Returns the [code]avoidance_layers[/code] bitmask of the specified [param obstacle].
|
||||
</description>
|
||||
</method>
|
||||
<method name="obstacle_get_map" qualifiers="const">
|
||||
<return type="RID" />
|
||||
<param index="0" name="obstacle" type="RID" />
|
||||
|
|
@ -544,6 +635,34 @@
|
|||
Returns [code]true[/code] if the specified [param obstacle] is paused.
|
||||
</description>
|
||||
</method>
|
||||
<method name="obstacle_get_position" qualifiers="const">
|
||||
<return type="Vector2" />
|
||||
<param index="0" name="obstacle" type="RID" />
|
||||
<description>
|
||||
Returns the position of the specified [param obstacle] in world space.
|
||||
</description>
|
||||
</method>
|
||||
<method name="obstacle_get_radius" qualifiers="const">
|
||||
<return type="float" />
|
||||
<param index="0" name="obstacle" type="RID" />
|
||||
<description>
|
||||
Returns the radius of the specified dynamic [param obstacle].
|
||||
</description>
|
||||
</method>
|
||||
<method name="obstacle_get_velocity" qualifiers="const">
|
||||
<return type="Vector2" />
|
||||
<param index="0" name="obstacle" type="RID" />
|
||||
<description>
|
||||
Returns the velocity of the specified dynamic [param obstacle].
|
||||
</description>
|
||||
</method>
|
||||
<method name="obstacle_get_vertices" qualifiers="const">
|
||||
<return type="PackedVector2Array" />
|
||||
<param index="0" name="obstacle" type="RID" />
|
||||
<description>
|
||||
Returns the outline vertices for the specified [param obstacle].
|
||||
</description>
|
||||
</method>
|
||||
<method name="obstacle_set_avoidance_enabled">
|
||||
<return type="void" />
|
||||
<param index="0" name="obstacle" type="RID" />
|
||||
|
|
@ -703,6 +822,13 @@
|
|||
If [param uniformly] is [code]false[/code], just a random polygon and face is picked (faster).
|
||||
</description>
|
||||
</method>
|
||||
<method name="region_get_transform" qualifiers="const">
|
||||
<return type="Transform2D" />
|
||||
<param index="0" name="region" type="RID" />
|
||||
<description>
|
||||
Returns the global transformation of this [param region].
|
||||
</description>
|
||||
</method>
|
||||
<method name="region_get_travel_cost" qualifiers="const">
|
||||
<return type="float" />
|
||||
<param index="0" name="region" type="RID" />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue