[gd_scene load_steps=6 format=2]

[ext_resource path="res://modeling/ghost.glb" type="PackedScene" id=1]
[ext_resource path="res://Ghosty.gd" type="Script" id=2]
[ext_resource path="res://Area.gd" type="Script" id=3]

[sub_resource type="Animation" id=1]
resource_name = "Floating"
loop = true
tracks/0/type = "value"
tracks/0/path = NodePath("ghost:translation")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 0.5 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 0,
"values": [ Vector3( 0.6, 0, 0 ), Vector3( 0.6, 0.4, 0 ) ]
}

[sub_resource type="CylinderShape" id=2]
radius = 1.2

[node name="Ghosty" type="Spatial"]
script = ExtResource( 2 )

[node name="ghost" parent="." instance=ExtResource( 1 )]
transform = Transform( 2, 0, 0, 0, 2, 0, 0, 0, 2, 0.6, 0.4, 0 )

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

[node name="Area" type="KinematicBody" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.438077, 0 )
collision_mask = 2147483651
script = ExtResource( 3 )

[node name="CollisionShape" type="CollisionShape" parent="Area"]
shape = SubResource( 2 )
