player.tscn 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. [gd_scene load_steps=5 format=3 uid="uid://cpj7vtj6gr3tv"]
  2. [ext_resource type="Script" path="res://player.gd" id="1_d31c7"]
  3. [ext_resource type="PackedScene" uid="uid://bbvciliw3xnf6" path="res://objects/black_out.tscn" id="2_ecfc5"]
  4. [sub_resource type="BoxMesh" id="BoxMesh_sldd7"]
  5. size = Vector3(0.05, 0.05, 0.05)
  6. [sub_resource type="CapsuleShape3D" id="CapsuleShape3D_xe2ly"]
  7. [node name="XROrigin3D" type="XROrigin3D"]
  8. current = true
  9. script = ExtResource("1_d31c7")
  10. [node name="XRCamera3D" type="XRCamera3D" parent="."]
  11. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.5, -0.1)
  12. far = 1000.0
  13. [node name="Neck" type="Node3D" parent="XRCamera3D"]
  14. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.1, 0.1)
  15. [node name="BlackOut" parent="XRCamera3D" instance=ExtResource("2_ecfc5")]
  16. [node name="LeftHand" type="XRController3D" parent="."]
  17. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.5, 1, -0.5)
  18. tracker = &"left_hand"
  19. pose = &"aim"
  20. [node name="PlaceholderHand" type="MeshInstance3D" parent="LeftHand"]
  21. mesh = SubResource("BoxMesh_sldd7")
  22. [node name="RightHand" type="XRController3D" parent="."]
  23. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.5, 1, -0.5)
  24. tracker = &"right_hand"
  25. pose = &"aim"
  26. [node name="PlaceholderHand" type="MeshInstance3D" parent="RightHand"]
  27. mesh = SubResource("BoxMesh_sldd7")
  28. skeleton = NodePath("../../LeftHand")
  29. [node name="CharacterBody3D" type="CharacterBody3D" parent="."]
  30. [node name="CollisionShape3D" type="CollisionShape3D" parent="CharacterBody3D"]
  31. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
  32. shape = SubResource("CapsuleShape3D_xe2ly")