Chris' Tutorials
Docs/Grid Placement

Class

CollisionProcessor2D

Generated GDScript class reference for GridPlacement.CollisionProcessor2D.

StatusDraft
Versionv6.0
UpdatedDevelopment docs generated from GDScript source

This is unreleased documentation in active development. APIs, class names, and behavior may change before the final release.

Draft — Unreleased:This page is in active development. APIs, class names, and behavior may change before the release is finalized. Use it as a preview of what's coming — not as a stable integration target.

Unified Collision Processor Handles processing for both CollisionObject2D (with shapes) and CollisionPolygon2D. Converts collision geometry to relative tile offsets for indicator positioning. [b]CRITICAL:[/b] Must use positioner.global_position as coordinate reference to maintain relative offsets. Using collision object position causes positioning displacement. [b]📖 COMPLETE GUIDE:[/b] /astro_docs/src/content/docs/internal/positioning-regression-fix-guide.mdx

Source: addons/grid_placement/placement/manager/components/mapper/collision_processor_2d.gd

Syntax

class CollisionProcessor2D extends PlacementInjectable

Members

NameKindSummary
GeometryCacheManagerField
invalidate_cacheMethod
resolve_placement_dependenciesMethod
get_runtime_issuesMethod
issuesProperty
get_tile_offsets_for_collisionMethod
collision_positionsProperty
collision_positionsProperty
proc_resultProperty
offsetsProperty
collision_positionsProperty
col_objProperty
center_tileProperty
tile_sizeProperty
shape_epsilonProperty
tile_shapeProperty
shape_positionsProperty
process_shape_offsetsMethod
shape_positionsProperty
shape_ownerProperty
shape_transformProperty
shape_polygonProperty
boundsProperty
tile_rangeProperty
start_tileProperty
end_exclusiveProperty
shape_offsetsProperty
calculate_tile_rangeMethod
min_localProperty
max_localProperty
start_tileProperty
end_exclusiveProperty
shape_center_tileProperty
left_spanProperty
right_spanProperty
desired_right_exclusiveProperty
eff_sizeProperty
shape_center_tileProperty
adjustedProperty
compute_shape_tile_offsetsMethod
tile_shapeProperty
shape_offsetsProperty
col_idProperty
sample_listProperty
collision_objectsProperty

Source

addons/grid_placement/placement/manager/components/mapper/collision_processor_2d.gd

Plugin docs root:gdscript/plugins/grid_placement_dev/docs