This commit is contained in:
team3
2026-09-16 17:55:38 +02:00
parent c9416ed3c6
commit f012dd7cd5
17 changed files with 878 additions and 160 deletions

View File

@@ -68,8 +68,7 @@ func _scatter(track, stations: Array) -> void:
while placed < 620 and tries < 12000:
tries += 1
var p := Vector2(_rng.randf_range(-EXTENT, EXTENT), _rng.randf_range(-EXTENT, EXTENT))
var closest: Vector3 = track.path.curve.get_closest_point(Vector3(p.x, 0, p.y))
if Vector2(closest.x, closest.z).distance_to(p) < 11.0:
if track.distance_to_track(p) < 11.0:
continue
if p.distance_to(Vector2(-230, 150)) < 78.0:
continue