From 3287455b91e59c700c29b9f303aa9a0ff3fe13ba Mon Sep 17 00:00:00 2001 From: Ryan Reed Date: Mon, 24 Mar 2025 12:27:17 -0400 Subject: [PATCH] Adding comments --- scenes/blocks/dropped_block.gd | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scenes/blocks/dropped_block.gd b/scenes/blocks/dropped_block.gd index 71266e3..5212e95 100644 --- a/scenes/blocks/dropped_block.gd +++ b/scenes/blocks/dropped_block.gd @@ -15,8 +15,13 @@ var impulse: Vector3 = Vector3.ZERO func _ready() -> void: + ## AnimationPlayer handles modifying BlockMesh scale, position, and rotation + ## The scale is NOT applied to any other node, including RigidBody and CollisionShape animation_player.play("start_animation") - await get_tree().create_timer(pickup_timeout).timeout # Give block enough time to clear player collision + + ## Wait for pickup_timeout to ensure player does not trigger + ## pickup immediately after throwing + await get_tree().create_timer(pickup_timeout).timeout pickup_area.monitoring = true