Files
gd-net-thirdpersoncontroller/scenes/player.tscn
2022-12-05 19:12:17 +01:00

38 lines
1.6 KiB
Plaintext

[gd_scene load_steps=5 format=3 uid="uid://b2ncexsbkd2ca"]
[ext_resource type="Script" path="res://src/player.cs" id="1_sqkid"]
[sub_resource type="CapsuleMesh" id="CapsuleMesh_4c62m"]
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_bfc1o"]
[sub_resource type="SeparationRayShape3D" id="SeparationRayShape3D_31c1r"]
[node name="player" type="CharacterBody3D"]
script = ExtResource("1_sqkid")
[node name="mesh" type="MeshInstance3D" parent="."]
transform = Transform3D(0.999994, 0, 0.00349065, 0, 1.2, 0, -0.00349065, 0, 0.999994, 0, 1.2, 0)
mesh = SubResource("CapsuleMesh_4c62m")
skeleton = NodePath("")
[node name="collision" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1.2, 0, 0, 0, 1, 0, 1.2, 0)
shape = SubResource("CapsuleShape3D_bfc1o")
[node name="raycast" type="RayCast3D" parent="."]
transform = Transform3D(0.999965, 0.00425433, -0.00718195, -0.00722324, 0.00977106, -0.999926, -0.00418384, 0.999943, 0.00980145, 0.0215459, 1.13283, -1.47514)
target_position = Vector3(0, 1, 0)
[node name="camera_center" type="Marker3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 0.999999, 0, 1.2, 0)
[node name="spring_arm" type="SpringArm3D" parent="camera_center"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, -5.96046e-08, 1, 0, 0, -0.5)
shape = SubResource("SeparationRayShape3D_31c1r")
spring_length = 6.0
[node name="camera" type="Camera3D" parent="camera_center/spring_arm"]
transform = Transform3D(1, 1.54914e-09, -6.87955e-10, -1.62981e-09, 0.990268, -0.139173, 4.65661e-10, 0.139173, 0.990269, 0, 0.0182246, 6.09616)
current = true