Chris' Tutorials
Docs/Grid Placement

Class

CollisionObjectResolver2D

Generated GDScript class reference for GridPlacement.CollisionObjectResolver2D.

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.

Collision Object Resolver Internal utility for resolving collision objects and their test setups. Handles the logic for determining appropriate CollisionObject2D instances for layer checking and finding corresponding CollisionTestSetup2D objects. This is an internal implementation detail of CollisionMapper2D and should not be used directly. Unit tests access it for testing the resolution logic. [b]Responsibilities:[/b]

  • Resolve CollisionObject2D for layer checking from various collision node types
  • Find appropriate CollisionTestSetup2D for collision objects
  • Validate collision object hierarchies
  • Provide type-safe collision object handling [b]Supported Collision Types:[/b]
  • CollisionObject2D (direct)
  • CollisionShape2D (via parent CollisionObject2D)
  • CollisionPolygon2D (via parent CollisionObject2D)

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

Syntax

class CollisionObjectResolver2D extends RefCounted

Members

NameKindSummary
collision_objectPropertyResult of collision object resolution
test_setupProperty
is_validProperty
error_messageProperty
resolve_collision_objectMethod
test_setupProperty
polygon_childrenProperty
shape_childrenProperty
parentProperty
collision_objProperty
test_setupProperty
tProperty
sProperty
object_matches_layer_maskMethod

Source

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

Plugin docs root:gdscript/plugins/grid_placement_dev/docs