What this component contains
ATTRIBUTION.mdLICENSEREADME.mdbaltor_test.gdcomponent.jsonflow_field_grid.gdinspect_gdscript.pyrun_tests.gdtest_package.pytests/test_flow_field_grid.gdverification/native.json
How it works
- Class
- BaltorFlowField, extends RefCounted
- Methods
- has_cell(cell: Vector2i) -> bool; set_cost(cell: Vector2i, cost: float) -> bool; get_cost(cell: Vector2i) -> float; build(goals: Array[Vector2i]) -> int; get_distance(cell: Vector2i) -> float; direction_at(cell: Vector2i) -> Vector2; sample(point: Vector2) -> Vector2; world_to_cell(point: Vector2) -> Vector2i; and 1 more
- Placement
- res://baltor/godot_components/flow_field_grid/
Recorded checks
godot 4.7.2.stable.official.ed1daf0bf
godot_parse_check_onlygodot_gdscript_testsgodot_tests_reject_gutted_componentgodot_editor_importgodot_contract_reflectiongodot_readme_usage_compiles
Limits to consider
Grid-based with 8 neighbors and no corner cutting; directions point to the next cell center, so units should blend them for smooth motion. Rebuilding costs O(cells log cells) in GDScript. Verified with Godot 4.7.2 headless; written against the Godot 4.3 API.