This commit is contained in:
Clevertop 2024-08-14 00:45:21 +10:00
parent 22c132ca78
commit 6307a95c25
10 changed files with 156 additions and 20 deletions

View file

@ -1,4 +1,4 @@
[gd_scene load_steps=4 format=3 uid="uid://d34smep2ukq7w"]
[gd_scene load_steps=5 format=3 uid="uid://d34smep2ukq7w"]
[ext_resource type="Script" path="res://Scripts/Player.gd" id="1_tc5d2"]
@ -8,13 +8,18 @@
radius = 0.47
height = 1.9
[node name="Player" type="CharacterBody3D" node_paths=PackedStringArray("camera", "raycast", "hand", "collider", "dash_node")]
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_cfrhy"]
radius = 0.47
height = 1.9
[node name="Player" type="CharacterBody3D" node_paths=PackedStringArray("camera", "raycast", "hand", "collider", "area", "dash_node")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.83982, 0)
script = ExtResource("1_tc5d2")
camera = NodePath("Camera3D")
raycast = NodePath("Camera3D/RayCast3D")
hand = NodePath("Camera3D/hand")
collider = NodePath("CollisionShape3D")
area = NodePath("Area3D")
dash_node = NodePath("Camera3D/DashDirection")
[node name="MeshInstance3D2" type="MeshInstance3D" parent="."]
@ -37,3 +42,8 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -2.0093)
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
shape = SubResource("CapsuleShape3D_a6eig")
[node name="Area3D" type="Area3D" parent="."]
[node name="CollisionShape3D" type="CollisionShape3D" parent="Area3D"]
shape = SubResource("CapsuleShape3D_cfrhy")