player.tscn 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. [gd_scene load_steps=7 format=3 uid="uid://dir0a2wjc5s7w"]
  2. [ext_resource type="Script" path="res://component/entity/player/player.gd" id="1_hwwnj"]
  3. [ext_resource type="Script" path="res://component/entity/player/player_input.gd" id="2_ju3m6"]
  4. [sub_resource type="SceneReplicationConfig" id="SceneReplicationConfig_fb1vy"]
  5. properties/0/path = NodePath(".:player")
  6. properties/0/spawn = true
  7. properties/0/sync = false
  8. properties/1/path = NodePath(".:position")
  9. properties/1/spawn = true
  10. properties/1/sync = true
  11. properties/2/path = NodePath(".:velocity")
  12. properties/2/spawn = true
  13. properties/2/sync = true
  14. [sub_resource type="SceneReplicationConfig" id="SceneReplicationConfig_hoavk"]
  15. properties/0/path = NodePath(".:direction")
  16. properties/0/spawn = false
  17. properties/0/sync = true
  18. [sub_resource type="CapsuleShape3D" id="CapsuleShape3D_37qaq"]
  19. [sub_resource type="CapsuleMesh" id="CapsuleMesh_jab13"]
  20. radial_segments = 8
  21. rings = 4
  22. [node name="Player" type="CharacterBody3D"]
  23. script = ExtResource("1_hwwnj")
  24. [node name="ServerSynchronizer" type="MultiplayerSynchronizer" parent="."]
  25. replication_config = SubResource("SceneReplicationConfig_fb1vy")
  26. [node name="PlayerInput" type="MultiplayerSynchronizer" parent="."]
  27. root_path = NodePath(".")
  28. replication_config = SubResource("SceneReplicationConfig_hoavk")
  29. script = ExtResource("2_ju3m6")
  30. jumping = null
  31. direction = null
  32. [node name="CollisionShape3D" type="CollisionShape3D" parent="."]
  33. shape = SubResource("CapsuleShape3D_37qaq")
  34. [node name="MeshInstance3D" type="MeshInstance3D" parent="."]
  35. mesh = SubResource("CapsuleMesh_jab13")
  36. [node name="Camera3D" type="Camera3D" parent="."]
  37. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.40432, 2.04444)