AStarGrid2D

Inherits: RefCounted < Object

There is currently no description for this class. Please help us by contributing one!

Properties

CellShape

cell_shape

0

Vector2

cell_size

Vector2(1, 1)

Heuristic

default_compute_heuristic

0

Heuristic

default_estimate_heuristic

0

DiagonalMode

diagonal_mode

0

bool

jumping_enabled

false

Vector2

offset

Vector2(0, 0)

Rect2i

region

Rect2i(0, 0, 0, 0)

Vector2i

size

Vector2i(0, 0)

Methods

float

_compute_cost ( Vector2i from_id, Vector2i to_id ) virtual const

float

_estimate_cost ( Vector2i from_id, Vector2i to_id ) virtual const

void

clear ( )

void

fill_solid_region ( Rect2i region, bool solid=true )

void

fill_weight_scale_region ( Rect2i region, float weight_scale )

Vector2i[]

get_id_path ( Vector2i from_id, Vector2i to_id, bool allow_partial_path=false )

PackedVector2Array

get_point_path ( Vector2i from_id, Vector2i to_id, bool allow_partial_path=false )

Vector2

get_point_position ( Vector2i id ) const

float

get_point_weight_scale ( Vector2i id ) const

bool

is_dirty ( ) const

bool

is_in_bounds ( int x, int y ) const

bool

is_in_boundsv ( Vector2i id ) const

bool

is_point_solid ( Vector2i id ) const

void

set_point_solid ( Vector2i id, bool solid=true )

void

set_point_weight_scale ( Vector2i id, float weight_scale )

void

update ( )


Enumerations

enum Heuristic:

Heuristic HEURISTIC_EUCLIDEAN = 0

There is currently no description for this enum. Please help us by contributing one!

Heuristic HEURISTIC_MANHATTAN = 1

There is currently no description for this enum. Please help us by contributing one!

Heuristic HEURISTIC_OCTILE = 2

There is currently no description for this enum. Please help us by contributing one!

Heuristic HEURISTIC_CHEBYSHEV = 3

There is currently no description for this enum. Please help us by contributing one!

Heuristic HEURISTIC_MAX = 4

There is currently no description for this enum. Please help us by contributing one!


enum DiagonalMode:

DiagonalMode DIAGONAL_MODE_ALWAYS = 0

There is currently no description for this enum. Please help us by contributing one!

DiagonalMode DIAGONAL_MODE_NEVER = 1

There is currently no description for this enum. Please help us by contributing one!

DiagonalMode DIAGONAL_MODE_AT_LEAST_ONE_WALKABLE = 2

There is currently no description for this enum. Please help us by contributing one!

DiagonalMode DIAGONAL_MODE_ONLY_IF_NO_OBSTACLES = 3

There is currently no description for this enum. Please help us by contributing one!

DiagonalMode DIAGONAL_MODE_MAX = 4

There is currently no description for this enum. Please help us by contributing one!


enum CellShape:

CellShape CELL_SHAPE_SQUARE = 0

There is currently no description for this enum. Please help us by contributing one!

CellShape CELL_SHAPE_ISOMETRIC_RIGHT = 1

There is currently no description for this enum. Please help us by contributing one!

CellShape CELL_SHAPE_ISOMETRIC_DOWN = 2

There is currently no description for this enum. Please help us by contributing one!

CellShape CELL_SHAPE_MAX = 3

There is currently no description for this enum. Please help us by contributing one!


Property Descriptions

CellShape cell_shape = 0

There is currently no description for this property. Please help us by contributing one!


Vector2 cell_size = Vector2(1, 1)

There is currently no description for this property. Please help us by contributing one!


Heuristic default_compute_heuristic = 0

  • void set_default_compute_heuristic ( Heuristic value )

  • Heuristic get_default_compute_heuristic ( )

There is currently no description for this property. Please help us by contributing one!


Heuristic default_estimate_heuristic = 0

  • void set_default_estimate_heuristic ( Heuristic value )

  • Heuristic get_default_estimate_heuristic ( )

There is currently no description for this property. Please help us by contributing one!


DiagonalMode diagonal_mode = 0

There is currently no description for this property. Please help us by contributing one!


bool jumping_enabled = false

  • void set_jumping_enabled ( bool value )

  • bool is_jumping_enabled ( )

There is currently no description for this property. Please help us by contributing one!


Vector2 offset = Vector2(0, 0)

There is currently no description for this property. Please help us by contributing one!


Rect2i region = Rect2i(0, 0, 0, 0)

There is currently no description for this property. Please help us by contributing one!


Vector2i size = Vector2i(0, 0)

There is currently no description for this property. Please help us by contributing one!


Method Descriptions

float _compute_cost ( Vector2i from_id, Vector2i to_id ) virtual const

There is currently no description for this method. Please help us by contributing one!


float _estimate_cost ( Vector2i from_id, Vector2i to_id ) virtual const

There is currently no description for this method. Please help us by contributing one!


void clear ( )

There is currently no description for this method. Please help us by contributing one!


void fill_solid_region ( Rect2i region, bool solid=true )

There is currently no description for this method. Please help us by contributing one!


void fill_weight_scale_region ( Rect2i region, float weight_scale )

There is currently no description for this method. Please help us by contributing one!


Vector2i[] get_id_path ( Vector2i from_id, Vector2i to_id, bool allow_partial_path=false )

There is currently no description for this method. Please help us by contributing one!


PackedVector2Array get_point_path ( Vector2i from_id, Vector2i to_id, bool allow_partial_path=false )

There is currently no description for this method. Please help us by contributing one!


Vector2 get_point_position ( Vector2i id ) const

There is currently no description for this method. Please help us by contributing one!


float get_point_weight_scale ( Vector2i id ) const

There is currently no description for this method. Please help us by contributing one!


bool is_dirty ( ) const

There is currently no description for this method. Please help us by contributing one!


bool is_in_bounds ( int x, int y ) const

There is currently no description for this method. Please help us by contributing one!


bool is_in_boundsv ( Vector2i id ) const

There is currently no description for this method. Please help us by contributing one!


bool is_point_solid ( Vector2i id ) const

There is currently no description for this method. Please help us by contributing one!


void set_point_solid ( Vector2i id, bool solid=true )

There is currently no description for this method. Please help us by contributing one!


void set_point_weight_scale ( Vector2i id, float weight_scale )

There is currently no description for this method. Please help us by contributing one!


void update ( )

There is currently no description for this method. Please help us by contributing one!