Files

104 lines
3.2 KiB
Plaintext

[gd_scene load_steps=8 format=3 uid="uid://ds5hcam4onxo3"]
[ext_resource type="PackedScene" uid="uid://52ww431af3a7" path="res://art/player.glb" id="1_feavy"]
[ext_resource type="Script" uid="uid://8mr1hlskuud" path="res://Player.cs" id="1_q8lbo"]
[sub_resource type="SphereShape3D" id="SphereShape3D_s8xr1"]
radius = 0.792
[sub_resource type="CylinderShape3D" id="CylinderShape3D_6327m"]
height = 0.144
radius = 0.908
[sub_resource type="Animation" id="Animation_7xhch"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Pivot/Character:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector3(2.08165e-12, 0.33, 2.08165e-12)]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("Pivot/Character:rotation")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector3(0, 0, 0)]
}
[sub_resource type="Animation" id="Animation_03s6x"]
resource_name = "float"
length = 1.2
loop_mode = 1
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Pivot/Character:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0.3, 0.7, 1.2),
"transitions": PackedFloat32Array(0.420448, 2.07053, 1),
"update": 0,
"values": [Vector3(2.08165e-12, 0.33, 2.08165e-12), Vector3(2.08165e-12, 0.65, 2.08165e-12), Vector3(2.08165e-12, 0.35, 2.08165e-12)]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("Pivot/Character:rotation")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0.1, 0.5, 1.2),
"transitions": PackedFloat32Array(0.420448, 0.450625, 1),
"update": 0,
"values": [Vector3(0, 0, 0), Vector3(0.139626, 3.48787e-16, 3.48787e-16), Vector3(-0.15708, 3.48787e-16, 3.48787e-16)]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_x6efk"]
_data = {
&"RESET": SubResource("Animation_7xhch"),
&"float": SubResource("Animation_03s6x")
}
[node name="Player" type="CharacterBody3D"]
collision_mask = 6
script = ExtResource("1_q8lbo")
[node name="Pivot" type="Node3D" parent="."]
[node name="Character" parent="Pivot" instance=ExtResource("1_feavy")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.08165e-12, 0.33, 2.08165e-12)
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.08165e-12, 0.772, 2.08165e-12)
shape = SubResource("SphereShape3D_s8xr1")
[node name="MobDetector" type="Area3D" parent="."]
collision_layer = 0
collision_mask = 2
monitorable = false
[node name="CollisionShape3D" type="CollisionShape3D" parent="MobDetector"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.08165e-12, 1.065, 2.08165e-12)
shape = SubResource("CylinderShape3D_6327m")
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
libraries = {
&"": SubResource("AnimationLibrary_x6efk")
}
autoplay = "float"
[connection signal="body_entered" from="MobDetector" to="." method="OnMobDetectorBodyEntered"]