Browse Source

Adding comments

pull/12/head
Ryan Reed 1 month ago
parent
commit
3287455b91
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      scenes/blocks/dropped_block.gd

+ 6
- 1
scenes/blocks/dropped_block.gd View File

@ -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


Loading…
Cancel
Save