valencia-rail-rush/spawn.gd

11 lines
244 B
GDScript

extends Node3D
func _ready() -> void:
$Mesh.mesh.size.x = Global.chunk_size
$Mesh.mesh.size.y = Global.chunk_size
for tree in get_children():
if not tree.name.begins_with("Tree"):
continue
tree.position *= Global.chunk_size / 150