-
Notifications
You must be signed in to change notification settings - Fork 0
/
Knife.tscn
45 lines (36 loc) · 1.65 KB
/
Knife.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
[gd_scene load_steps=6 format=3 uid="uid://bvct05xuyek4y"]
[ext_resource type="ArrayMesh" uid="uid://x4gr370fo1qy" path="res://models/knife_sharp.obj" id="1_2m0au"]
[ext_resource type="Script" path="res://Knife.gd" id="2_b2m7g"]
[sub_resource type="BoxShape3D" id="BoxShape3D_yqo2b"]
[sub_resource type="Animation" id="Animation_05rqp"]
resource_name = "stab"
length = 0.3
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.1, 0.3),
"transitions": PackedFloat32Array(1, 1, 1),
"update": 0,
"values": [Vector3(0.75, -0.375, -0.451478), Vector3(0.75, -0.375, -1.41927), Vector3(0.75, -0.375, -0.451478)]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_apd6t"]
_data = {
"stab": SubResource("Animation_05rqp")
}
[node name="Knife" type="MeshInstance3D"]
transform = Transform3D(-19.9966, -2.78891e-07, 0.371387, -0.361665, 4.54628, -19.4731, -0.0844214, -19.4764, -4.5455, 0.75, -0.375, -0.451478)
mesh = ExtResource("1_2m0au")
script = ExtResource("2_b2m7g")
[node name="Area3D" type="Area3D" parent="."]
[node name="CollisionShape3D" type="CollisionShape3D" parent="Area3D"]
transform = Transform3D(0.0103673, -2.91038e-10, 4.00178e-11, -2.03727e-10, 0.0605524, -2.56114e-09, -1.12777e-10, -7.45058e-09, 0.0134867, -4.7721e-05, 0.0259987, -0.000232641)
shape = SubResource("BoxShape3D_yqo2b")
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
libraries = {
"": SubResource("AnimationLibrary_apd6t")
}
[connection signal="body_entered" from="Area3D" to="." method="_on_area_3d_body_entered"]