godot-third-person-basic-scene/player/player.tscn

109 lines
4.1 KiB
Text
Raw Permalink Normal View History

2022-03-25 18:20:34 +00:00
[gd_scene load_steps=7 format=3 uid="uid://dwxrvijqyym70"]
[ext_resource type="Script" path="res://player/player.gd" id="1_myhjw"]
[ext_resource type="PackedScene" uid="uid://cjklxedjnvc1c" path="res://player/character/character.tscn" id="1_rqqo8"]
2022-02-09 22:36:58 +00:00
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_a1omj"]
radius = 0.446849
height = 1.52436
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_b1r1o"]
radius = 0.781675
height = 1.69837
2022-03-25 18:20:34 +00:00
[sub_resource type="CylinderShape3D" id="CylinderShape3D_lc75a"]
height = 2.75615
2022-04-15 13:54:35 +00:00
radius = 0.4
2022-02-09 22:36:58 +00:00
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_645as"]
radius = 0.608862
height = 1.69456
[node name="player" type="CharacterBody3D"]
script = ExtResource( "1_myhjw" )
[node name="Mesh" type="Node3D" parent="."]
[node name="character" parent="Mesh" instance=ExtResource( "1_rqqo8" )]
2022-02-09 22:36:58 +00:00
[node name="CollisionFly" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 0, -1, 0, 1, 0, 0, 0.994976, -0.258262)
2022-03-25 18:20:34 +00:00
visible = false
2022-02-09 22:36:58 +00:00
shape = SubResource( "CapsuleShape3D_a1omj" )
disabled = true
[node name="CollisionFlyIdle" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.27688, 0)
visible = false
shape = SubResource( "CapsuleShape3D_b1r1o" )
disabled = true
[node name="CollisionWalk" type="CollisionShape3D" parent="."]
transform = Transform3D(0.999787, 0, 0, 0, 0.589349, 0, 0, 0, 0.371542, 0, 0.836561, 0)
2022-03-25 18:20:34 +00:00
shape = SubResource( "CylinderShape3D_lc75a" )
2022-01-20 11:26:15 +00:00
2022-02-09 22:36:58 +00:00
[node name="CollisionSwim" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 0, -1, 0, 1, 0, 0, 0, 0)
2022-03-25 18:20:34 +00:00
visible = false
2022-02-09 22:36:58 +00:00
shape = SubResource( "CapsuleShape3D_645as" )
disabled = true
2022-01-20 11:26:15 +00:00
[node name="camera_root" type="Node3D" parent="."]
[node name="horizontal_root" type="Node3D" parent="camera_root"]
[node name="vertical_root" type="Node3D" parent="camera_root/horizontal_root"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.55554, 0)
2022-02-03 22:49:49 +00:00
[node name="Camera3D_TPS" type="Camera3D" parent="camera_root/horizontal_root/vertical_root"]
2022-01-20 11:26:15 +00:00
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, 0, -2.14563)
2022-03-25 18:20:34 +00:00
current = true
[node name="Down" type="RayCast3D" parent="camera_root/horizontal_root/vertical_root/Camera3D_TPS"]
target_position = Vector3(0, -0.2, 0)
[node name="Up" type="RayCast3D" parent="camera_root/horizontal_root/vertical_root/Camera3D_TPS"]
target_position = Vector3(0, 0.2, 0)
[node name="Left" type="RayCast3D" parent="camera_root/horizontal_root/vertical_root/Camera3D_TPS"]
target_position = Vector3(-0.2, 0, 0)
[node name="Back" type="RayCast3D" parent="camera_root/horizontal_root/vertical_root/Camera3D_TPS"]
target_position = Vector3(0, 0, 0.2)
[node name="Right" type="RayCast3D" parent="camera_root/horizontal_root/vertical_root/Camera3D_TPS"]
target_position = Vector3(0.2, 0, 0)
[node name="Camera3D_TPS_Debug" type="Camera3D" parent="camera_root/horizontal_root/vertical_root"]
transform = Transform3D(-1, 0, 8.74228e-08, 0, 1, 0, -8.74228e-08, 0, -1, 0, 0, -3)
2022-02-03 22:49:49 +00:00
2022-02-06 15:02:02 +00:00
[node name="Camera3D_FPS_WALK" type="Camera3D" parent="camera_root"]
2022-02-03 23:32:39 +00:00
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, 1.56633, 0.222061)
2022-02-09 22:36:58 +00:00
visible = false
2022-02-05 18:58:58 +00:00
2022-02-06 15:02:02 +00:00
[node name="Camera3D_FPS_FLY" type="Camera3D" parent="camera_root"]
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, 1.09195, 0.571561)
2022-02-09 22:36:58 +00:00
visible = false
2022-02-06 15:02:02 +00:00
[node name="Camera3D_FPS_SWIM" type="Camera3D" parent="camera_root"]
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, 0.148843, 0.633556)
2022-02-09 22:36:58 +00:00
visible = false
2022-02-06 15:02:02 +00:00
2022-02-09 22:36:58 +00:00
[node name="RayCastGround" type="RayCast3D" parent="."]
2022-03-31 20:55:20 +00:00
transform = Transform3D(1, 0, 0, 0, 0, 1, 0, -0.3, 0, 0, 0.04, 0)
2022-02-09 22:36:58 +00:00
[node name="RayCastStep" type="RayCast3D" parent="."]
2022-02-12 01:00:16 +00:00
transform = Transform3D(1, 0, 0, 0, 0, 1, 0, -0.4, 0, 0, 0.4, 0)
2022-02-15 20:41:14 +00:00
[node name="TimerJump" type="Timer" parent="."]
wait_time = 5.0
one_shot = true
2022-03-25 18:20:34 +00:00
[node name="Water_Walk_Max_Level" type="Position3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.35, 0)
[node name="Water_Swim_Max_Level" type="Position3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.600346, 0)
2022-02-15 20:41:14 +00:00
[connection signal="timeout" from="TimerJump" to="." method="_on_timer_jump_timeout"]