feat: Make spawn trees adjust to chunk_size changes

This commit is contained in:
Dendy 2026-03-06 10:04:09 +01:00
parent 9ae17c194e
commit c3c3f73cfd
1 changed files with 5 additions and 0 deletions

View File

@ -3,3 +3,8 @@ extends Node3D
func _ready() -> void: func _ready() -> void:
$Mesh.mesh.size.x = Global.chunk_size $Mesh.mesh.size.x = Global.chunk_size
$Mesh.mesh.size.y = 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