What this component contains
ATTRIBUTION.mdLICENSEREADME.mdbaltor_test.gdcomponent.jsoninspect_gdscript.pypath_follower_2d.gdrun_tests.gdtest_package.pytests/test_path_follower_2d.gdverification/native.json
How it works
- Class
- BaltorPathFollower, extends RefCounted
- Methods
- set_points(points: PackedVector2Array, closed: bool = false) -> void; get_length() -> float; closest_point(point: Vector2) -> Dictionary; point_at_distance(distance: float) -> Vector2; steer(position: Vector2, velocity: Vector2, max_speed: float, lookahead: float = 0.5, ahead: float = 24.0) -> Vector2; progress_of(point: Vector2) -> float
- Placement
- res://baltor/godot_components/path_follower_2d/
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
Straight segments only; the closest-point search checks every segment, so very long paths cost more per query. An agent can swing wide of tight corners by about its turning radius. Verified with Godot 4.7.2 headless; written against the Godot 4.3 API.