Chris' Tutorials
Docs/Grid Placement

Class

CollisionsCheckRule

Generated GDScript class reference for GridPlacement.CollisionsCheckRule.

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.

Rule that validates placement based on collision detection. This rule checks for physics collisions at indicator positions and validates based on the [member pass_on_collision] setting: - [code]false[/code] (default): Placement FAILS if collision detected ("must have clear space") - [code]true[/code]: Placement FAILS if NO collision detected ("must overlap with existing objects")

Source: addons/grid_placement/placement/placement_rules/template_rules/collisions_check_rule.gd

Syntax

class CollisionsCheckRule extends TileCheckRule

Members

NameKindSummary
pass_on_collisionPropertyControls collision validation behavior: - [code]false[/code]: Rule PASSES when no collision (placement requires clear space) - [code]true[/code]: Rule PASSES when collision detected (placement requires overlap) Common use cases: - [code]false[/code]: Building placement (needs empty space) - [code]true[/code]: Attachment mechanics (must connect to existing structures)
collision_maskPropertyPhysics layers to scan for collisions.
messagesPropertyModular message configuration resource
setupMethod
issuesProperty
validate_placementMethod
issue_messageProperty
reason_messageProperty
failing_indicatorsProperty
failing_countProperty
is_successfulProperty
issuesProperty
get_failing_indicatorsMethod
failed_indicatorsProperty
null_countProperty
valid_countProperty
collision_countProperty
excluded_bodiesProperty
target_nodeProperty
indicatorProperty
original_maskProperty
use_cacheProperty
is_collidingProperty
has_real_collisionProperty
collidersProperty
expected_collisionsProperty
passed_countProperty
bodiesProperty
target_nodeProperty
body_namesProperty
get_editor_issuesMethod
issuesProperty
get_runtime_issuesMethod
issuesProperty

Source

addons/grid_placement/placement/placement_rules/template_rules/collisions_check_rule.gd

Plugin docs root:gdscript/plugins/grid_placement_dev/docs