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