Skip to content

Class

PlacementWorldFactsProvider2D

Generated GDScript class reference for GridPlacement.PlacementWorldFactsProvider2D.

Status
Current
Version
v6.0
Source updated
Active v6.0 guide line from Grid Placement repo
Generated on
2026-09-01

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