44 lines
1.8 KiB
Plaintext
44 lines
1.8 KiB
Plaintext
[gd_scene format=3 uid="uid://cpog4xqme7wqj"]
|
|
|
|
[ext_resource type="Script" uid="uid://c1r1jpfh3vsn2" path="res://Scripts/PlayerController.gd" id="1_xhfnw"]
|
|
[ext_resource type="PackedScene" uid="uid://8xgne2anpltj" path="res://Scenes/Crosshair.tscn" id="2_kpjcp"]
|
|
|
|
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_rpqav"]
|
|
|
|
[sub_resource type="CapsuleMesh" id="CapsuleMesh_qbkls"]
|
|
|
|
[node name="Player" type="CharacterBody3D" unique_id=1270645855 node_paths=PackedStringArray("head", "camera", "raycast", "hand", "crosshair")]
|
|
collision_layer = 17
|
|
collision_mask = 13
|
|
script = ExtResource("1_xhfnw")
|
|
speed = 3.0
|
|
head = NodePath("Head")
|
|
camera = NodePath("Head/Camera3D")
|
|
raycast = NodePath("Head/Camera3D/RayCast3D")
|
|
hand = NodePath("Head/Camera3D/Hand")
|
|
crosshair = NodePath("Crosshair")
|
|
mouseFactorLerpSpeed = 5.0
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="." unique_id=1346737595]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
|
|
shape = SubResource("CapsuleShape3D_rpqav")
|
|
|
|
[node name="MeshInstance3D" type="MeshInstance3D" parent="." unique_id=58443605]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
|
|
mesh = SubResource("CapsuleMesh_qbkls")
|
|
|
|
[node name="Head" type="Node3D" parent="." unique_id=1111037465]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.7, 0)
|
|
|
|
[node name="Camera3D" type="Camera3D" parent="Head" unique_id=2013197953]
|
|
|
|
[node name="RayCast3D" type="RayCast3D" parent="Head/Camera3D" unique_id=176888250]
|
|
transform = Transform3D(1, 0, 0, 0, -4.371139e-08, -1, 0, 1, -4.371139e-08, 0, 0, 0)
|
|
target_position = Vector3(0, -2, 0)
|
|
collision_mask = 13
|
|
|
|
[node name="Hand" type="Marker3D" parent="Head/Camera3D" unique_id=1759533778]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -2)
|
|
|
|
[node name="Crosshair" parent="." unique_id=577244800 instance=ExtResource("2_kpjcp")]
|