Skip to content
ct

Class

PlacementWorldFactsProvider2D

Generated GDScript class reference for GridPlacement.PlacementWorldFactsProvider2D.

Status
Draft
Version
v6.0
Updated
Development docs generated from GDScript source

This is unreleased documentation in active development. APIs, class names, and behavior may change before the final release.

Dimension-specific provider boundary for placement-relevant 2D world facts. Grid Placement owns placement flow, previews, validation composition, and reports. Games own physics/simulation/world truth. This small RefCounted contract lets a game supply facts from Godot Physics, Avian 2D, a custom simulation, or a test stub without making the plugin depend on that backend.

Source: addons/grid_placement/placement/placement_rules/placement_world_facts_provider_2d.gd

Syntax

class PlacementWorldFactsProvider2D extends RefCounted

Members

NameKindSummary
KEY_BLOCKEDField
KEY_REASONField
KEY_SOURCEField
KEY_CELLField
KEY_SURFACEField
KEY_METADATAField
SOURCE_DEFAULTField
has_fact_for_cellMethod
is_cell_blockedMethod
get_block_reasonMethod
get_surface_dataMethod
get_cell_metadataMethod
get_cell_reportMethod