class

Godot::NavigationAgent2D

Inherits Godot::Node < Godot::Object < Reference < Object

Constructors

new(pointer : Pointer(Void) = Pointer(Void).null)
Source

Instance methods

avoidance_enabled

Property avoidance_enabled getter

Source
avoidance_enabled=(val)

Property avoidance_enabled setter

Source
avoidance_enabled?
Source
avoidance_layers

Property avoidance_layers getter

Source
avoidance_layers=(val : Int)

Property avoidance_layers setter

Source
avoidance_mask

Property avoidance_mask getter

Source
avoidance_mask=(val : Int)

Property avoidance_mask setter

Source
avoidance_priority

Property avoidance_priority getter

Source
avoidance_priority=(val : Number)

Property avoidance_priority setter

Source
debug_enabled

Property debug_enabled getter

Source
debug_enabled=(val)

Property debug_enabled setter

Source
debug_enabled?
Source
debug_path_custom_color

Property debug_path_custom_color getter

Source
debug_path_custom_color=(val)

Property debug_path_custom_color setter

Source
debug_path_custom_line_width

Property debug_path_custom_line_width getter

Source
debug_path_custom_line_width=(val : Number)

Property debug_path_custom_line_width setter

Source
debug_path_custom_point_size

Property debug_path_custom_point_size getter

Source
debug_path_custom_point_size=(val : Number)

Property debug_path_custom_point_size setter

Source
debug_use_custom

Property debug_use_custom getter

Source
debug_use_custom=(val)

Property debug_use_custom setter

Source
debug_use_custom?
Source
distance_to_target
Source
get_avoidance_enabled
Source
get_avoidance_layer_value(layer_number : Int64) : Bool
Source
get_avoidance_layers
Source
get_avoidance_mask
Source
get_avoidance_mask_value(mask_number : Int64) : Bool
Source
get_avoidance_priority
Source
get_current_navigation_path
Source
get_current_navigation_path_index
Source
get_current_navigation_result
Source
get_debug_enabled
Source
get_debug_path_custom_color
Source
get_debug_path_custom_line_width
Source
get_debug_path_custom_point_size
Source
get_debug_use_custom
Source
get_final_position
Source
get_max_neighbors
Source
get_max_speed
Source
get_navigation_layer_value(layer_number : Int64) : Bool
Source
get_navigation_layers
Source
get_navigation_map
Source
get_neighbor_distance
Source
get_next_path_position
Source
get_path_desired_distance
Source
get_path_length
Source
get_path_max_distance
Source
get_path_metadata_flags
Source
get_path_postprocessing
Source
get_path_return_max_length
Source
get_path_return_max_radius
Source
get_path_search_max_distance
Source
get_path_search_max_polygons
Source
get_pathfinding_algorithm
Source
get_radius
Source
get_rid
Source
get_simplify_epsilon
Source
get_simplify_path
Source
get_target_desired_distance
Source
get_target_position
Source
get_time_horizon_agents
Source
get_time_horizon_obstacles
Source
get_velocity
Source
is_navigation_finished
Source
is_target_reachable
Source
is_target_reached
Source
max_neighbors

Property max_neighbors getter

Source
max_neighbors=(val : Int)

Property max_neighbors setter

Source
max_speed

Property max_speed getter

Source
max_speed=(val : Number)

Property max_speed setter

Source
neighbor_distance

Property neighbor_distance getter

Source
neighbor_distance=(val : Number)

Property neighbor_distance setter

Source
path_desired_distance

Property path_desired_distance getter

Source
path_desired_distance=(val : Number)

Property path_desired_distance setter

Source
path_max_distance

Property path_max_distance getter

Source
path_max_distance=(val : Number)

Property path_max_distance setter

Source
path_metadata_flags

Property path_metadata_flags getter

Source
path_metadata_flags=(val : Int)

Property path_metadata_flags setter

Source
path_postprocessing

Property path_postprocessing getter

Source
path_postprocessing=(val : Int)

Property path_postprocessing setter

Source
path_return_max_length

Property path_return_max_length getter

Source
path_return_max_length=(val : Number)

Property path_return_max_length setter

Source
path_return_max_radius

Property path_return_max_radius getter

Source
path_return_max_radius=(val : Number)

Property path_return_max_radius setter

Source
path_search_max_distance

Property path_search_max_distance getter

Source
path_search_max_distance=(val : Number)

Property path_search_max_distance setter

Source
path_search_max_polygons

Property path_search_max_polygons getter

Source
path_search_max_polygons=(val : Int)

Property path_search_max_polygons setter

Source
pathfinding_algorithm

Property pathfinding_algorithm getter

Source
pathfinding_algorithm=(val : Int)

Property pathfinding_algorithm setter

Source
radius

Property radius getter

Source
radius=(val : Number)

Property radius setter

Source
set_avoidance_enabled(enabled : Bool) : Void
Source
set_avoidance_layer_value(layer_number : Int64, value : Bool) : Void
Source
set_avoidance_layers(layers : Int64) : Void
Source
set_avoidance_mask(mask : Int64) : Void
Source
set_avoidance_mask_value(mask_number : Int64, value : Bool) : Void
Source
set_avoidance_priority(priority : Float64) : Void
Source
set_debug_enabled(enabled : Bool) : Void
Source
set_debug_path_custom_color(color : Color) : Void
Source
set_debug_path_custom_line_width(line_width : Float64) : Void
Source
set_debug_path_custom_point_size(point_size : Float64) : Void
Source
set_debug_use_custom(enabled : Bool) : Void
Source
set_max_neighbors(max_neighbors : Int64) : Void
Source
set_max_speed(max_speed : Float64) : Void
Source
set_navigation_layer_value(layer_number : Int64, value : Bool) : Void
Source
set_navigation_layers(navigation_layers : Int64) : Void
Source
set_navigation_map(navigation_map : Int64) : Void
Source
set_neighbor_distance(neighbor_distance : Float64) : Void
Source
set_path_desired_distance(desired_distance : Float64) : Void
Source
set_path_max_distance(max_speed : Float64) : Void
Source
set_path_metadata_flags(flags : Int64) : Void
Source
set_path_postprocessing(path_postprocessing : Int64) : Void
Source
set_path_return_max_length(length : Float64) : Void
Source
set_path_return_max_radius(radius : Float64) : Void
Source
set_path_search_max_distance(distance : Float64) : Void
Source
set_path_search_max_polygons(max_polygons : Int64) : Void
Source
set_pathfinding_algorithm(pathfinding_algorithm : Int64) : Void
Source
set_radius(radius : Float64) : Void
Source
set_simplify_epsilon(epsilon : Float64) : Void
Source
set_simplify_path(enabled : Bool) : Void
Source
set_target_desired_distance(desired_distance : Float64) : Void
Source
set_target_position(position : Vector2) : Void
Source
set_time_horizon_agents(time_horizon : Float64) : Void
Source
set_time_horizon_obstacles(time_horizon : Float64) : Void
Source
set_velocity(velocity : Vector2) : Void
Source
set_velocity_forced(velocity : Vector2) : Void
Source
simplify_epsilon

Property simplify_epsilon getter

Source
simplify_epsilon=(val : Number)

Property simplify_epsilon setter

Source
simplify_path

Property simplify_path getter

Source
simplify_path=(val)

Property simplify_path setter

Source
simplify_path?
Source
target_desired_distance

Property target_desired_distance getter

Source
target_desired_distance=(val : Number)

Property target_desired_distance setter

Source
target_position

Property target_position getter

Source
target_position=(val)

Property target_position setter

Source
time_horizon_agents

Property time_horizon_agents getter

Source
time_horizon_agents=(val : Number)

Property time_horizon_agents setter

Source
time_horizon_obstacles

Property time_horizon_obstacles getter

Source
time_horizon_obstacles=(val : Number)

Property time_horizon_obstacles setter

Source
velocity

Property velocity getter

Source
velocity=(val)

Property velocity setter

Source