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 PlacementInjectableMembers
| Name | Kind | Summary |
|---|---|---|
GeometryCacheManager | Field | |
invalidate_cache | Method | |
resolve_placement_dependencies | Method | |
get_runtime_issues | Method | |
issues | Property | |
get_tile_offsets_for_collision | Method | |
collision_positions | Property | |
collision_positions | Property | |
proc_result | Property | |
offsets | Property | |
collision_positions | Property | |
col_obj | Property | |
center_tile | Property | |
tile_size | Property | |
shape_epsilon | Property | |
tile_shape | Property | |
shape_positions | Property | |
process_shape_offsets | Method | |
shape_positions | Property | |
shape_owner | Property | |
shape_transform | Property | |
shape_polygon | Property | |
bounds | Property | |
tile_range | Property | |
start_tile | Property | |
end_exclusive | Property | |
shape_offsets | Property | |
calculate_tile_range | Method | |
min_local | Property | |
max_local | Property | |
start_tile | Property | |
end_exclusive | Property | |
shape_center_tile | Property | |
left_span | Property | |
right_span | Property | |
desired_right_exclusive | Property | |
eff_size | Property | |
shape_center_tile | Property | |
adjusted | Property | |
compute_shape_tile_offsets | Method | |
tile_shape | Property | |
shape_offsets | Property | |
col_id | Property | |
sample_list | Property | |
collision_objects | Property |
Source
addons/grid_placement/placement/manager/components/mapper/collision_processor_2d.gd
Plugin docs root:gdscript/plugins/grid_placement_dev/docs