Unified Collision Processor Handles processing for both CollisionObject2D (with shapes) and CollisionPolygon2D. Converts collision geometry to relative tile offsets for indicator positioning. CRITICAL: Must use positioner.global_position as coordinate reference to maintain relative offsets. Using collision object position causes positioning displacement.
Source: addons/grid_placement/placement/manager/components/mapper/collision_processor_2d.gd
Syntax
class CollisionProcessor2D extends RefCountedMembers
| Name | Kind | Summary |
|---|---|---|
invalidate_cache | Method | |
resolve_placement_dependencies | Method | |
get_runtime_issues | Method | |
get_tile_offsets_for_collision | Method | |
process_shape_offsets | Method | |
calculate_tile_range | Method | |
compute_shape_tile_offsets | Method |
Guides that use this class
Tutorials built on Grid Placement
- Godot multiplayer grid placement: one host, four sessions
- Godot 2D grid building system: paint, place, save
- Godot 3D grid building system: the runtime loop
- Godot 4 grid-building plugins: build mode vs editor tools
- 3D room placement in Godot: build rooms and stack storeys
- 3D grid placement in Godot 4: full setup tutorial
- Snap to a TileMap in Godot: 2D grid placement
- How to make a farming system in Godot
- How to snap objects to a 3D grid in Godot