collision_polygon_processor
AUTO-GENERATED FILE – DO NOT EDIT MANUALLY
Handles processing for CollisionPolygon2D.
Source File: /addons/grid_building/placement/manager/components/mapper/collision_polygon_processor.gd
Extends: RefCounted
Private Properties
- Property:
_targeting_state: [GridTargetingState](./grid-targeting-state/)(private) - Property:
_mapper : [PolygonTileMapper](./polygon-tile-mapper/)(private)
Constants
- Constant:
PolygonTileMapper = preload("res://addons/grid_building/placement/manager/components/mapper/polygon_tile_mapper.gd")
Public Methods
get_tile_offsets_for_collision_polygon
| |
Converts collision polygon geometry to tile offsets. This method processes a CollisionPolygon2D node and maps its geometry to tile offsets on the given TileMapLayer. It returns a dictionary where keys are Vector2i tile offsets and values are arrays of CollisionPolygon2D nodes.
@param polygon_node: The CollisionPolygon2D node to process. @param map: The TileMapLayer to map offsets against. @param logger: The logger for diagnostic output. @return A Dictionary[Vector2i, Array[CollisionPolygon2D]] containing tile offsets as keys and associated collision polygons as values.
Private Methods
_init
| |
Flags: private
Grid Building v5.0.8 | Generated 24/05/2026