update
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user