What this component contains
ATTRIBUTION.mdLICENSEREADME.mdbaltor_test.gdcomponent.jsonformation_slots.gdinspect_gdscript.pyrun_tests.gdtest_package.pytests/test_formation_slots.gdverification/native.json
How it works
- Class
- BaltorFormation, extends RefCounted
- Methods
- slot_offsets(shape: Shape, count: int, spacing: float) -> PackedVector2Array; world_slots(offsets: PackedVector2Array, anchor: Vector2, facing_angle: float) -> PackedVector2Array; assign(members: PackedVector2Array, slots: PackedVector2Array) -> PackedInt32Array; total_distance(members: PackedVector2Array, slots: PackedVector2Array, assignment: PackedInt32Array) -> float
- Placement
- res://baltor/godot_components/formation_slots/
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
2D layouts facing +x. The assignment is greedy plus pairwise swaps, not an optimal Hungarian assignment; it is quadratic to cubic in the member count and meant for squads, not crowds. Verified with Godot 4.7.2 headless; written against the Godot 4.3 API.