Chris' Tutorials
Docs/Grid Placement

Class

CollisionMapper2D

Generated GDScript class reference for GridPlacement.CollisionMapper2D.

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.

Responsibilities:

  • Translate CollisionShape2D / CollisionPolygon2D geometry into tile offsets used by placement rules and indicators.
  • Apply filtering, normalization, and heuristics to remove slivers and normalize pivots for consistent indicators.
  • Provide caching and utility helpers consumed by IndicatorManager and the placement pipeline. See: Collision Mapping guide

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

Syntax

class CollisionMapper2D extends PlacementInjectable

Members

NameKindSummary
MIN_POLY_TILE_OVERLAP_RATIOField
indicator_contact_positionsProperty
test_indicatorProperty
test_setupsPropertyMaps each CollisionObject2D to its CollisionTestSetup2D for collision testing.
get_targeting_stateMethod
create_with_injectionMethod
targeting_stateProperty
loggerProperty
mapperProperty
issuesProperty
get_runtime_issuesMethod
issuesProperty
resolve_placement_dependenciesMethod
setupMethod
map_collision_positions_to_rulesMethod
mapProperty
dbg_msgProperty
coProperty
default_maskProperty
positions_onlyProperty
pos_tileProperty
abs_tileProperty
rule_infoProperty
found_positionsProperty
found_countProperty
pos_tileProperty
abs_tileProperty
get_collision_tile_positions_with_maskMethod
colliding_tile_positionsProperty
diag_linesProperty
col_objProperty
resolutionProperty
matchesProperty
obj_layerProperty
mask_layersProperty
obj_layersProperty
collision_tile_offsetsProperty
offsets_countProperty
shownProperty
iProperty
msgProperty
combined_resultsProperty
has_polygonProperty
child_offsetsProperty
tile_setProperty
auto_setupProperty
resultProperty
get_tile_offsets_for_collision_polygonMethod
collision_tile_offsetsProperty
resultProperty
get_tile_offsets_for_test_collisionsMethod
collision_positionsProperty
validation_issuesProperty
col_objProperty
mapProperty
get_rect_tile_positionsMethod
does_indicator_overlap_shapeMethod

Source

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

Plugin docs root:gdscript/plugins/grid_placement_dev/docs