player.tscn 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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="CapsuleShape3D" id="CapsuleShape3D_xe2ly"]
  5. [sub_resource type="BoxMesh" id="BoxMesh_sldd7"]
  6. size = Vector3(0.05, 0.05, 0.05)
  7. [node name="CharacterBody3D" type="CharacterBody3D"]
  8. script = ExtResource("1_d31c7")
  9. [node name="CollisionShape3D" type="CollisionShape3D" parent="."]
  10. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
  11. shape = SubResource("CapsuleShape3D_xe2ly")
  12. [node name="XROrigin3D" type="XROrigin3D" parent="."]
  13. [node name="XRCamera3D" type="XRCamera3D" parent="XROrigin3D"]
  14. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.5, -0.1)
  15. far = 1000.0
  16. [node name="Neck" type="Node3D" parent="XROrigin3D/XRCamera3D"]
  17. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.1, 0.1)
  18. [node name="BlackOut" parent="XROrigin3D/XRCamera3D" instance=ExtResource("2_ecfc5")]
  19. [node name="LeftHand" type="XRController3D" parent="XROrigin3D"]
  20. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.5, 1, -0.5)
  21. tracker = &"left_hand"
  22. pose = &"aim"
  23. [node name="PlaceholderHand" type="MeshInstance3D" parent="XROrigin3D/LeftHand"]
  24. mesh = SubResource("BoxMesh_sldd7")
  25. [node name="RightHand" type="XRController3D" parent="XROrigin3D"]
  26. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.5, 1, -0.5)
  27. tracker = &"right_hand"
  28. pose = &"aim"
  29. [node name="PlaceholderHand" type="MeshInstance3D" parent="XROrigin3D/RightHand"]
  30. mesh = SubResource("BoxMesh_sldd7")
  31. skeleton = NodePath("../../LeftHand")