gd: dash target
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=23 format=3 uid="uid://bei4nhkf8lwdo"]
|
||||
[gd_scene load_steps=25 format=3 uid="uid://bei4nhkf8lwdo"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://bbbrf5ckydfna" path="res://player_controller/Scripts/PlayerController.cs" id="1_poq2x"]
|
||||
[ext_resource type="Material" uid="uid://dtq8i1ka1f2pn" path="res://player_controller/Assets/Materials/Health/CameraVignette.tres" id="2_6hee7"]
|
||||
@ -9,6 +9,7 @@
|
||||
[ext_resource type="Script" uid="uid://cwbvxlfvmocc1" path="res://player_controller/Scripts/StairsSystem.cs" id="7_bmt5a"]
|
||||
[ext_resource type="Script" uid="uid://dd1yrt7eiiyf4" path="res://player_controller/Scripts/CapsuleCollider.cs" id="8_lmtjd"]
|
||||
[ext_resource type="Script" uid="uid://bt0xv2q8iv1vn" path="res://player_controller/Scripts/Gravity.cs" id="9_lsueh"]
|
||||
[ext_resource type="Script" uid="uid://dwoppk8j5fxeg" path="res://player_controller/Scripts/DashSystem.cs" id="9_qu4wy"]
|
||||
[ext_resource type="Script" uid="uid://g8idirw62qe0" path="res://player_controller/Scripts/Bobbing.cs" id="10_7wk1w"]
|
||||
[ext_resource type="Script" uid="uid://c6bx47wr7fbdm" path="res://player_controller/Scripts/Mouse.cs" id="11_huhen"]
|
||||
[ext_resource type="Script" uid="uid://b6k73aj5povgv" path="res://player_controller/Scripts/FieldOfView.cs" id="12_m2mxi"]
|
||||
@ -26,6 +27,9 @@ shader_parameter/blur = 0.0
|
||||
|
||||
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_4coqe"]
|
||||
|
||||
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_qu4wy"]
|
||||
height = 1.5
|
||||
|
||||
[sub_resource type="Animation" id="Animation_vcu7l"]
|
||||
length = 0.001
|
||||
tracks/0/type = "bezier"
|
||||
@ -114,6 +118,7 @@ _data = {
|
||||
script = ExtResource("1_poq2x")
|
||||
WalkSpeed = 10.0
|
||||
SprintSpeed = 15.0
|
||||
ControllerSensitivity = 30.0
|
||||
|
||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
|
||||
@ -197,14 +202,20 @@ debug_shape_custom_color = Color(1, 0, 0, 1)
|
||||
|
||||
[node name="WallInFrontCast3D" type="ShapeCast3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
|
||||
shape = SubResource("CapsuleShape3D_4coqe")
|
||||
target_position = Vector3(0, 0, -2)
|
||||
debug_shape_custom_color = Color(1, 0, 0, 1)
|
||||
shape = SubResource("CapsuleShape3D_qu4wy")
|
||||
target_position = Vector3(0, 0, -1.5)
|
||||
max_results = 1
|
||||
debug_shape_custom_color = Color(0.911631, 0.11884, 0.656218, 1)
|
||||
|
||||
[node name="WallInFrontRayCast3D" type="RayCast3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 1.65, 0)
|
||||
enabled = false
|
||||
target_position = Vector3(0, -2, 0)
|
||||
[node name="DashSystem" type="Node3D" parent="."]
|
||||
script = ExtResource("9_qu4wy")
|
||||
|
||||
[node name="DashCast3D" type="ShapeCast3D" parent="DashSystem"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.68, 0)
|
||||
shape = SubResource("CapsuleShape3D_qu4wy")
|
||||
target_position = Vector3(0, 0, -20)
|
||||
max_results = 1
|
||||
debug_shape_custom_color = Color(0.911631, 0.11884, 0.656218, 1)
|
||||
|
||||
[node name="StairsSystem" type="Node3D" parent="."]
|
||||
script = ExtResource("7_bmt5a")
|
||||
|
Reference in New Issue
Block a user