GridPositionerUtils
Summary
Section titled “Summary”Static utility class for GridPositioner tile and movement helpers.
Methods
Section titled “Methods”static func get_tile_from_global_position( p_global_position: Vector2, p_map: TileMapLayer ) -> Vector2i
Convert global position to tile coordinates on the target map
static func move_to_tile( p_node: Node2D, p_tile: Vector2i, p_map: TileMapLayer ) -> Error
Move a node to a specific tile position
static func move_positioner_by_tile( p_node: Node2D, p_direction: Vector2, p_target_map: TileMapLayer ) -> Error
Move the positioner by a specified number of tiles in a given direction
Source
Section titled “Source”addons/grid_building/systems/grid_targeting/grid_positioner/grid_positioner_utils.gd
This API reference is automatically generated from the plugin source code. For implementation examples and usage guides, see the guides section.