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 RefCountedMembers
| Name | Kind | Summary |
|---|---|---|
KEY_BLOCKED | Field | |
KEY_REASON | Field | |
KEY_SOURCE | Field | |
KEY_CELL | Field | |
KEY_SURFACE | Field | |
KEY_METADATA | Field | |
SOURCE_DEFAULT | Field | |
has_fact_for_cell | Method | |
is_cell_blocked | Method | |
get_block_reason | Method | |
get_surface_data | Method | |
get_cell_metadata | Method | |
get_cell_report | Method |