51 lines
1.9 KiB
Plaintext
51 lines
1.9 KiB
Plaintext
[gd_scene load_steps=7 format=3 uid="uid://clhy3kiceqf2o"]
|
|
|
|
[ext_resource type="Script" uid="uid://day6rhxicaxqf" path="res://components/characters/player/player_character.gd" id="1_hqu6r"]
|
|
[ext_resource type="Script" uid="uid://dsjlv8midt2g2" path="res://components/characters/character_movement_base.gd" id="2_1ixuj"]
|
|
[ext_resource type="Script" uid="uid://2y3gnaqtrfnx" path="res://components/characters/player/head.gd" id="2_fjt7c"]
|
|
[ext_resource type="Script" uid="uid://nuwb55sbveaf" path="res://components/characters/common/footstep_component.gd" id="4_vq0uu"]
|
|
|
|
[sub_resource type="Resource" id="Resource_vq0uu"]
|
|
script = ExtResource("2_1ixuj")
|
|
jump_height = 0.25
|
|
walking_speed = 3.5
|
|
air_walking_speed = 3.75
|
|
running_speed = 5.5
|
|
air_running_speed = 6.0
|
|
max_turning_speed = 70.0
|
|
max_air_turning_speed = 10.0
|
|
max_acceleration = 30.0
|
|
max_air_acceleration = 10.0
|
|
max_friction = 20.0
|
|
max_air_friction = 10.0
|
|
use_default_physics_gravity = true
|
|
gravity = 9.8
|
|
gravity_check_margin = 0.05
|
|
rise_gravity_multiplier = 1.0
|
|
peak_gravity_multiplier = 0.3
|
|
fall_gravity_multiplier = 1.5
|
|
metadata/_custom_type_script = "uid://dsjlv8midt2g2"
|
|
|
|
[sub_resource type="CylinderShape3D" id="CylinderShape3D_fjt7c"]
|
|
|
|
[node name="PlayerCharacter" type="CharacterBody3D"]
|
|
script = ExtResource("1_hqu6r")
|
|
movement = SubResource("Resource_vq0uu")
|
|
metadata/_custom_type_script = "uid://day6rhxicaxqf"
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
|
|
shape = SubResource("CylinderShape3D_fjt7c")
|
|
|
|
[node name="Head" type="Node3D" parent="." node_paths=PackedStringArray("camera")]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.8, 0)
|
|
script = ExtResource("2_fjt7c")
|
|
camera = NodePath("Camera3D")
|
|
|
|
[node name="Camera3D" type="Camera3D" parent="Head"]
|
|
fov = 85.0
|
|
|
|
[node name="FootstepComponent" type="Node" parent="." node_paths=PackedStringArray("character")]
|
|
script = ExtResource("4_vq0uu")
|
|
character = NodePath("..")
|