New player controller

This commit is contained in:
WiseNoodle
2025-08-10 22:22:25 -04:00
parent 5807549863
commit 14464d703c
3 changed files with 116 additions and 65 deletions

View File

@@ -24,21 +24,27 @@ properties/0/replication_mode = 2
properties/1/path = NodePath(".:rotation")
properties/1/spawn = true
properties/1/replication_mode = 2
properties/2/path = NodePath("Camera3D/head:rotation")
properties/2/path = NodePath("Neck:rotation")
properties/2/spawn = true
properties/2/replication_mode = 1
properties/2/replication_mode = 2
[node name="Player" type="CharacterBody3D" node_paths=PackedStringArray("head")]
[node name="Player" type="CharacterBody3D" node_paths=PackedStringArray("camera", "neck", "body", "head")]
collision_layer = 2
collision_mask = 3
script = ExtResource("1_ulp21")
head = NodePath("Camera3D/head")
camera = NodePath("Neck/Camera3D")
neck = NodePath("Neck")
body = NodePath("Mesh")
head = NodePath("Neck/head")
[node name="Camera3D" type="Camera3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.510896, 0.0644827)
[node name="Neck" type="Node3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.266461, 0)
[node name="head" parent="Camera3D" instance=ExtResource("3_wnvi2")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -0.0645776)
[node name="Camera3D" type="Camera3D" parent="Neck"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.238996, 0)
[node name="head" parent="Neck" instance=ExtResource("3_wnvi2")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.238996, 0)
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
shape = SubResource("CapsuleShape3D_ehsmr")