dash working

This commit is contained in:
Clevertop 2024-08-11 12:27:38 +10:00
parent cce3f56caa
commit 4b4d97746c
8 changed files with 86 additions and 24 deletions

View file

@ -8,13 +8,14 @@
radius = 0.47
height = 1.9
[node name="Player" type="CharacterBody3D" node_paths=PackedStringArray("camera", "raycast", "hand", "collider")]
[node name="Player" type="CharacterBody3D" node_paths=PackedStringArray("camera", "raycast", "hand", "collider", "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")
dash_node = NodePath("Camera3D/DashDirection")
[node name="MeshInstance3D2" type="MeshInstance3D" parent="."]
mesh = SubResource("CapsuleMesh_5q2rg")
@ -31,5 +32,8 @@ collide_with_areas = true
[node name="hand" type="Node3D" parent="Camera3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.930871, -0.621505, -0.929852)
[node name="DashDirection" type="Node3D" parent="Camera3D"]
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")