-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplayer.tscn
73 lines (60 loc) · 2.27 KB
/
player.tscn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
[gd_scene load_steps=8 format=3 uid="uid://brdf4juutkuuj"]
[ext_resource type="Script" path="res://player.gd" id="1_ogrmi"]
[ext_resource type="PackedScene" uid="uid://bt02eno0txv0h" path="res://art/player.glb" id="1_sllwb"]
[ext_resource type="Animation" uid="uid://cxfi2b7nfp75u" path="res://player-float.tres" id="3_3ixxo"]
[sub_resource type="SphereShape3D" id="SphereShape3D_84klr"]
radius = 0.799527
[sub_resource type="CylinderShape3D" id="CylinderShape3D_v32gq"]
[sub_resource type="Animation" id="Animation_bpp4r"]
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(0, 0, 0)]
}
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="AnimationLibrary" id="AnimationLibrary_a7smg"]
_data = {
"RESET": SubResource("Animation_bpp4r"),
"float": ExtResource("3_3ixxo")
}
[node name="Player" type="CharacterBody3D"]
collision_mask = 6
script = ExtResource("1_ogrmi")
[node name="Pivot" type="Node3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.145104, 0)
[node name="Character" parent="Pivot" instance=ExtResource("1_sllwb")]
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.803151, 0)
shape = SubResource("SphereShape3D_84klr")
[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, 0.229539, 1.55939, 0.258124)
shape = SubResource("CylinderShape3D_v32gq")
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
autoplay = "float"
libraries = {
"": SubResource("AnimationLibrary_a7smg")
}
[connection signal="body_entered" from="MobDetector" to="." method="_on_mob_detector_body_entered"]