GridPositionerUtils

AUTO-GENERATED FILE – DO NOT EDIT MANUALLY

Static utility class for GridPositioner tile and movement helpers.

Source File: addons/grid_building/systems/grid_targeting/grid_positioner/grid_positioner_utils.gd

Extends: RefCounted

Public Methods

get_tile_from_global_position

1
2
3
4
get_tile_from_global_position(
    p_global_position: Vector2,
    p_map: TileMapLayer
) -> Vector2i

Flags: static

Convert global position to tile coordinates on the target map


move_to_tile

1
2
3
4
5
move_to_tile(
    p_node: Node2D,
    p_tile: Vector2i,
    p_map: TileMapLayer
) -> Error

Flags: static

Move a node to a specific tile position


move_positioner_by_tile

1
2
3
4
5
move_positioner_by_tile(
    p_node: Node2D,
    p_direction: Vector2,
    p_target_map: TileMapLayer
) -> Error

Flags: static

Move the positioner by a specified number of tiles in a given direction