[gd_scene load_steps=9 format=2]

[ext_resource path="res://materials/photorealistic wood.tres" type="Material" id=1]
[ext_resource path="res://textures/enemies/yeet_table.png" type="Texture" id=2]
[ext_resource path="res://objects/enemies/yeettable/YeetTable.gd" type="Script" id=3]
[ext_resource path="res://models/enemies/yeettable.obj" type="ArrayMesh" id=4]

[sub_resource type="Animation" id=1]
resource_name = "idle"
length = 2.0
loop = true
tracks/0/type = "bezier"
tracks/0/path = NodePath("RotationHelper/Sprite3D:rotation_degrees:x")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"points": PoolRealArray( 10, -0.25, 0, 0.25, 0, 44.6, -0.25, -1.8, 0.25, 0, 10, -0.25, 0, 0.25, 0 ),
"times": PoolRealArray( 0, 1, 2 )
}

[sub_resource type="Animation" id=2]
resource_name = "slap"
length = 1.5
tracks/0/type = "bezier"
tracks/0/path = NodePath("RotationHelper/Sprite3D:rotation_degrees:x")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"points": PoolRealArray( 10, -0.25, 0, 0.25, 0, -15, -0.25, 0, 0.25, 0, 85, -0.25, 0, 0.25, 0, 85, -0.25, 0, 0.25, 0, 10, -0.25, 0, 0.25, 0 ),
"times": PoolRealArray( 0, 0.2, 0.6, 0.9, 1.4 )
}
tracks/1/type = "bezier"
tracks/1/path = NodePath("RotationHelper/Sprite3D:rotation_degrees:y")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/imported = false
tracks/1/enabled = false
tracks/1/keys = {
"points": PoolRealArray( 0, -0.25, 0, 0.25, 0, 0, -0.25, 0, 0.25, 0, 0, -0.25, 0, 0.25, 0, 0, -0.25, 0, 0.25, 0, 0, -0.25, 0, 0.25, 0 ),
"times": PoolRealArray( 0, 0.5, 1.1, 1.2, 1.7 )
}
tracks/2/type = "bezier"
tracks/2/path = NodePath("RotationHelper/Sprite3D:rotation_degrees:z")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/imported = false
tracks/2/enabled = false
tracks/2/keys = {
"points": PoolRealArray( 0, -0.25, 0, 0.25, 0, 0, -0.25, 0, 0.25, 0, 0, -0.25, 0, 0.25, 0, 0, -0.25, 0, 0.25, 0, 0, -0.25, 0, 0.25, 0 ),
"times": PoolRealArray( 0, 0.5, 1.1, 1.2, 1.7 )
}

[sub_resource type="BoxShape" id=3]
extents = Vector3( 2.29893, 1.46391, 1.95232 )

[sub_resource type="BoxShape" id=4]
extents = Vector3( 4.13369, 1.77734, 3.55817 )

[node name="YeetTable" type="StaticBody"]
script = ExtResource( 3 )

[node name="RotationHelper" type="Spatial" parent="."]

[node name="Sprite3D" type="Sprite3D" parent="RotationHelper"]
transform = Transform( 0.2, 0, 0, 0, 0.196962, -0.173648, 0, 0.0347297, 0.984808, 0, 1.11869, 0 )
offset = Vector2( 0, 200 )
texture = ExtResource( 2 )

[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
anims/idle = SubResource( 1 )
anims/slap = SubResource( 2 )

[node name="AoE" type="Area" parent="."]

[node name="CollisionShape" type="CollisionShape" parent="AoE"]
shape = SubResource( 3 )

[node name="Slap" type="AudioStreamPlayer3D" parent="."]

[node name="MeshInstance" type="MeshInstance" parent="."]
transform = Transform( 0.4, 0, 0, 0, 0.4, 0, 0, 0, 0.4, 0, 0, 0 )
mesh = ExtResource( 4 )
material/0 = ExtResource( 1 )
material/1 = ExtResource( 1 )

[node name="CollisionShape" type="CollisionShape" parent="."]
transform = Transform( 0.4, 0, 0, 0, 0.4, 0, 0, 0, 0.4, 0, 0, 0 )
shape = SubResource( 4 )

[connection signal="animation_finished" from="AnimationPlayer" to="." method="_on_AnimationPlayer_animation_finished"]
