collision_polygon_processor
AUTO-GENERATED FILE — DO NOT EDIT MANUALLY
Source: placement/manager/components/mapper/collision_polygon_processor.gd
Version: 5.0
class_name: (none)
extends: RefCounted
Signals
(none)
Exports
(none)
Methods
_init()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.