Skip to content

Class

GridTargetingService

Generated GDScript class reference for GridPlacement.GridTargetingService.

Status
Current
Version
v6.0
Source updated
Active v6.0 guide line from Grid Placement repo
Generated on
2026-09-01

Scene-free grid targeting service. Makes AStar/grid positioning logic directly unit-testable without a scene tree. Handles: tile-to-world coordinate mapping, closest-valid-tile resolution, AStarGrid2D configuration, and targeting readiness validation. Signal emission (astar_grid_changed) and input handling stay on the hosting Node — the service is pure logic over injectable state. Usage: var service := GridTargetingService.new() service.configure(targeting_state, targeting_settings, mode_state, path_manager, logger) var err := service.move_node_to_closest_valid_tile(tile, pos, src)

Source: addons/grid_placement/systems/grid_targeting/grid_targeting_service.gd

Syntax

class GridTargetingService extends TargetingServiceContract

Members

NameKindSummary
supported_dimensionsMethod
configure_for_2dMethod
configureMethod
move_node_to_closest_valid_tileMethod
move_to_tileMethod
get_tile_from_global_positionMethod
update_astar_gridMethod
validate_readyMethod
get_targeting_issuesMethod
get_runtime_issuesMethod
get_path_managerMethod
get_target_mapMethod