68 lines
2.5 KiB
Plaintext
68 lines
2.5 KiB
Plaintext
[gd_scene load_steps=11 format=3 uid="uid://domhm87hbhbg1"]
|
|
|
|
[ext_resource type="Script" path="res://demo/src/Player.gd" id="1_nm1yx"]
|
|
[ext_resource type="Script" path="res://demo/src/CameraManager.gd" id="2_loos7"]
|
|
[ext_resource type="Script" path="res://addons/phantom_camera/scripts/phantom_camera/phantom_camera_3d.gd" id="3_24p7i"]
|
|
[ext_resource type="Script" path="res://addons/phantom_camera/scripts/resources/tween_resource.gd" id="4_d5orj"]
|
|
|
|
[sub_resource type="SphereShape3D" id="SphereShape3D_smq6u"]
|
|
|
|
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_lwhhq"]
|
|
height = 1.5
|
|
|
|
[sub_resource type="SeparationRayShape3D" id="SeparationRayShape3D_twc2s"]
|
|
|
|
[sub_resource type="CapsuleMesh" id="CapsuleMesh_lsqiy"]
|
|
|
|
[sub_resource type="Resource" id="Resource_pbmx3"]
|
|
script = ExtResource("4_d5orj")
|
|
duration = 1.0
|
|
transition = 0
|
|
ease = 2
|
|
|
|
[sub_resource type="SeparationRayShape3D" id="SeparationRayShape3D_0ii4s"]
|
|
|
|
[node name="Player" type="CharacterBody3D"]
|
|
collision_layer = 2
|
|
script = ExtResource("1_nm1yx")
|
|
|
|
[node name="CameraManager" type="Node3D" parent="."]
|
|
script = ExtResource("2_loos7")
|
|
|
|
[node name="Arm" type="SpringArm3D" parent="CameraManager"]
|
|
unique_name_in_owner = true
|
|
transform = Transform3D(1, 0, 0, 0, 0.906308, 0.422618, 0, -0.422618, 0.906308, 0, 2.32515, -0.0321627)
|
|
shape = SubResource("SphereShape3D_smq6u")
|
|
spring_length = 6.0
|
|
margin = 0.5
|
|
|
|
[node name="Camera3D" type="Camera3D" parent="CameraManager/Arm"]
|
|
unique_name_in_owner = true
|
|
near = 0.25
|
|
far = 16384.0
|
|
|
|
[node name="CollisionShapeBody" type="CollisionShape3D" parent="."]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.25, 0)
|
|
shape = SubResource("CapsuleShape3D_lwhhq")
|
|
|
|
[node name="CollisionShapeRay" type="CollisionShape3D" parent="."]
|
|
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 1, 0)
|
|
shape = SubResource("SeparationRayShape3D_twc2s")
|
|
|
|
[node name="Body" type="MeshInstance3D" parent="."]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
|
|
mesh = SubResource("CapsuleMesh_lsqiy")
|
|
|
|
[node name="PhantomCamera3D" type="Node3D" parent="." node_paths=PackedStringArray("follow_target", "look_at_target")]
|
|
transform = Transform3D(1, 0, 0, 0, 0.999919, 0, 0, 0, 0.999919, 0, 2, 0.999919)
|
|
script = ExtResource("3_24p7i")
|
|
priority = 2
|
|
follow_mode = 6
|
|
follow_target = NodePath("..")
|
|
look_at_mode = 1
|
|
look_at_target = NodePath("..")
|
|
tween_resource = SubResource("Resource_pbmx3")
|
|
follow_offset = Vector3(0, 2, 0)
|
|
follow_damping = true
|
|
shape = SubResource("SeparationRayShape3D_0ii4s")
|