class

Godot::AStar2D

Inherits Godot::RefCounted < Godot::Object < Reference < Object

Constructors

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

Instance methods

add_point(id : Int64, position : Vector2, weight_scale : Float64) : Void
Source
are_points_connected(id : Int64, to_id : Int64, bidirectional : Bool) : Bool
Source
clear
Source
connect_points(id : Int64, to_id : Int64, bidirectional : Bool) : Void
Source
disconnect_points(id : Int64, to_id : Int64, bidirectional : Bool) : Void
Source
get_available_point_id
Source
get_closest_point(to_position : Vector2, include_disabled : Bool) : Int64
Source
get_closest_position_in_segment(to_position : Vector2) : Vector2
Source
get_id_path(from_id : Int64, to_id : Int64, allow_partial_path : Bool) : Pointer(Void)
Source
get_point_capacity
Source
get_point_connections(id : Int64) : Pointer(Void)
Source
get_point_count
Source
get_point_ids
Source
get_point_path(from_id : Int64, to_id : Int64, allow_partial_path : Bool) : Pointer(Void)
Source
get_point_position(id : Int64) : Vector2
Source
get_point_weight_scale(id : Int64) : Float64
Source
has_point(id : Int64) : Bool
Source
is_neighbor_filter_enabled
Source
is_point_disabled(id : Int64) : Bool
Source
neighbor_filter_enabled

Property neighbor_filter_enabled getter

Source
neighbor_filter_enabled=(val)

Property neighbor_filter_enabled setter

Source
neighbor_filter_enabled?
Source
remove_point(id : Int64) : Void
Source
reserve_space(num_nodes : Int64) : Void
Source
set_neighbor_filter_enabled(enabled : Bool) : Void
Source
set_point_disabled(id : Int64, disabled : Bool) : Void
Source
set_point_position(id : Int64, position : Vector2) : Void
Source
set_point_weight_scale(id : Int64, weight_scale : Float64) : Void
Source