refactor: clarify simulation ownership

This commit is contained in:
Rijad Zuzo
2026-07-10 11:02:11 +02:00
parent 0f7b12080e
commit ce8f71082b
29 changed files with 793 additions and 587 deletions
-8
View File
@@ -47,7 +47,6 @@ func _physics_process(delta: float) -> void:
func _unhandled_input(event: InputEvent) -> void:
# keep your camera mouse code here too
if event.is_action_pressed("interact"):
try_interact()
@@ -100,13 +99,6 @@ func try_harvest_resource_node() -> bool:
return true
func is_near(zone: Marker3D) -> bool:
if zone == null:
return false
return global_position.distance_to(zone.global_position) <= interaction_range
func is_near_storage(storage_node: StorageNode) -> bool:
if storage_node == null:
return false