[gd_scene load_steps=7 format=2]

[ext_resource path="res://3d_platforma/Player.tscn" type="PackedScene" id=1]
[ext_resource path="res://Obstacles/SwingingAxe.tscn" type="PackedScene" id=2]

[sub_resource type="Animation" id=1]
length = 0.001
tracks/0/type = "value"
tracks/0/path = NodePath("KinematicBody:translation")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0 ),
"transitions": PoolRealArray( 1 ),
"update": 0,
"values": [ Vector3( 0, 0, 0 ) ]
}

[sub_resource type="Animation" id=2]
resource_name = "platform"
length = 6.0
loop = true
tracks/0/type = "value"
tracks/0/path = NodePath("KinematicBody:translation")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 3.1, 6 ),
"transitions": PoolRealArray( 1, 1, 1 ),
"update": 0,
"values": [ Vector3( 0, 0, 0 ), Vector3( 7.22974, 0, 0 ), Vector3( 0, 0, 0 ) ]
}

[sub_resource type="CubeMesh" id=3]
size = Vector3( 4, 1, 10 )

[sub_resource type="ConcavePolygonShape" id=4]
data = PoolVector3Array( -2, 0.5, 5, 2, 0.5, 5, -2, -0.5, 5, 2, 0.5, 5, 2, -0.5, 5, -2, -0.5, 5, 2, 0.5, -5, -2, 0.5, -5, 2, -0.5, -5, -2, 0.5, -5, -2, -0.5, -5, 2, -0.5, -5, 2, 0.5, 5, 2, 0.5, -5, 2, -0.5, 5, 2, 0.5, -5, 2, -0.5, -5, 2, -0.5, 5, -2, 0.5, -5, -2, 0.5, 5, -2, -0.5, -5, -2, 0.5, 5, -2, -0.5, 5, -2, -0.5, -5, 2, 0.5, 5, -2, 0.5, 5, 2, 0.5, -5, -2, 0.5, 5, -2, 0.5, -5, 2, 0.5, -5, -2, -0.5, 5, 2, -0.5, 5, -2, -0.5, -5, 2, -0.5, 5, 2, -0.5, -5, -2, -0.5, -5 )

[node name="Spatial" type="Spatial"]

[node name="CSGBox" type="CSGBox" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.739994, 1.55076 )
use_collision = true
width = 3.33378
height = 0.276134
depth = 7.4378

[node name="CSGBox2" type="CSGBox" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.63172, -13.8239 )
use_collision = true
width = 3.33378
height = 0.276134
depth = 4.96652

[node name="CSGBox3" type="CSGBox" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -2.65108, 3.45298, -9.43625 )
use_collision = true
width = 0.261805
height = 4.06841
depth = 9.32074

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

[node name="Player" parent="MovingPlatforms" instance=ExtResource( 1 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.15484, 2 )

[node name="SwingingAxe" parent="MovingPlatforms" instance=ExtResource( 2 )]
transform = Transform( 0.50747, -0.861669, 0, 0.861669, 0.50747, 0, 0, 0, 1, 6.52953, 7.68018, -9.53236 )

[node name="Spatial" type="Spatial" parent="MovingPlatforms"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.89305, 0.826549 )

[node name="AnimationPlayer" type="AnimationPlayer" parent="MovingPlatforms"]
autoplay = "platform"
anims/RESET = SubResource( 1 )
anims/platform = SubResource( 2 )

[node name="KinematicBody" type="KinematicBody" parent="MovingPlatforms"]

[node name="MeshInstance" type="MeshInstance" parent="MovingPlatforms/KinematicBody"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -7.21818 )
mesh = SubResource( 3 )

[node name="CollisionShape" type="CollisionShape" parent="MovingPlatforms/KinematicBody"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -7.21818 )
shape = SubResource( 4 )
