A Star 2D Grid Node

An asset by Firemanarg
The page banner background of a mountain and forest
A Star 2D Grid Node thumbnail image
A Star 2D Grid Node thumbnail image
A Star 2D Grid Node thumbnail image
A Star 2D Grid Node thumbnail image
A Star 2D Grid Node hero image

Quick Information

0 ratings
A Star 2D Grid Node icon image
Firemanarg
A Star 2D Grid Node

A simple implementation for the abstract class AStar2DGrid, used for a better performance pathfinding.

Supported Engine Version
4.0
Version String
1.1.0
License Version
MIT
Support Level
community
Modified Date
1 year ago
Git URL
Issue URL

godot-astar-2d-grid-node

A simple implementation of a Node for the abstract class AStar2DGrid, that can be used to implement pathfinding.

Preview

README image

Nodes

  • AStar2DGridNode

AStar2DGridNode

Properties

  • AStarGrid2D grid [ default: AStarGrid2D.new() ]
  • Vector2i grid_size [ default: Vector2i(32, 32) ]
  • Vector2 cell_size [ default: Vector2(16, 16) ]
  • Array[Vector2i] disabled_points [ default: [ ] ]
  • bool enable_grid_during_play [ default: false ]

Methods

Getters & Setters
  • Vector2i get_grid_size()
  • Array[Vector2i] get_disabled_points()
  • Vector2 get_cell_size()
  • void set_enable_grid_during_play(new_value: bool)
  • void set_grid_size(new_value: Vector2i)
  • void set_cell_size(new_value: Vector2)
  • void set_disabled_points(new_value: Array[Vector2i])
Path Calculators
  • Array calculate_point_path(from: Vector2, to: Vector2)
  • Array calculate_point_path_by_id(from_id: Vector2i, to_id: Vector2i)
  • Array calculate_id_path(from: Vector2, to: Vector2)
  • Array calculate_id_path_by_id(from_id: Vector2i, to_id: Vector2i)
Utils
  • void disable_point(id: Vector2i)
  • void enable_point(id: Vector2i)
  • Vector2i get_nearest_id(pos: Vector2)

A simple implementation for the abstract class AStar2DGrid, used for a better performance pathfinding.

Reviews

0 ratings

Your Rating

Headline must be at least 3 characters but not more than 50
Review must be at least 5 characters but not more than 500
Please sign in to add a review

Quick Information

0 ratings
A Star 2D Grid Node icon image
Firemanarg
A Star 2D Grid Node

A simple implementation for the abstract class AStar2DGrid, used for a better performance pathfinding.

Supported Engine Version
4.0
Version String
1.1.0
License Version
MIT
Support Level
community
Modified Date
1 year ago
Git URL
Issue URL

Open Source

Released under the AGPLv3 license

Plug and Play

Browse assets directly from Godot

Community Driven

Created by developers for developers