-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvsk_player.tscn
135 lines (111 loc) · 8.47 KB
/
vsk_player.tscn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
[gd_scene load_steps=20 format=3 uid="uid://doafhtfvstuff"]
[ext_resource type="Script" path="res://addons/vsk_entities/vsk_player.gd" id="1_ily3q"]
[ext_resource type="Script" path="res://addons/vsk_entities/extensions/interpolate_origin_to_zero_node_3d.gd" id="2_jhmsa"]
[ext_resource type="PackedScene" uid="uid://cfngp8rd4ii47" path="res://addons/vsk_entities/extensions/player_movement_controller.tscn" id="2_lxa8t"]
[ext_resource type="Script" path="res://addons/vsk_entities/extensions/player_snapshot_interpolation.gd" id="3_ewiba"]
[ext_resource type="Script" path="res://addons/vsk_entities/extensions/interpolate_angle_to_zero_anchored_node_3d.gd" id="3_km368"]
[ext_resource type="Script" path="res://addons/vsk_entities/extensions/player_xr_origin.gd" id="4_pk7ri"]
[ext_resource type="PackedScene" uid="uid://bslhttmjse5ys" path="res://addons/vsk_entities/extensions/player_xr_camera_3d.tscn" id="5_poivo"]
[ext_resource type="PackedScene" uid="uid://ftfgiu7f6lwh" path="res://addons/vsk_entities/extensions/models/godot_head.gltf" id="6_majn5"]
[ext_resource type="PackedScene" uid="uid://dongdv6lw5txv" path="res://addons/vsk_entities/extensions/models/left_hand.tscn" id="7_6wp6e"]
[ext_resource type="PackedScene" uid="uid://dwym0tadklcmg" path="res://addons/vsk_entities/extensions/player_movement/xr_controller/xr_controller_movement_direct.tscn" id="8_qv00o"]
[ext_resource type="PackedScene" uid="uid://7f42cd5n28nu" path="res://addons/vsk_entities/extensions/player_movement/xr_controller/xr_controller_movement_jump.tscn" id="9_nap77"]
[ext_resource type="PackedScene" uid="uid://cgtymgaebafux" path="res://addons/vsk_entities/extensions/models/right_hand.tscn" id="10_6s44a"]
[ext_resource type="PackedScene" uid="uid://qecslyswsnjn" path="res://addons/vsk_entities/extensions/player_movement/xr_controller/xr_controller_movement_turn.tscn" id="11_edqlr"]
[ext_resource type="Script" path="res://addons/vsk_entities/extensions/tracker_space.gd" id="14_ldvw4"]
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_ks12f"]
radius = 0.1
height = 1.5
[sub_resource type="PackedScene" id="PackedScene_81y8k"]
_bundled = {
"conn_count": 0,
"conns": PackedInt32Array(),
"editable_instances": [],
"names": PackedStringArray("PlayerXRCamera3D", "XRCamera3D", "transform"),
"node_count": 1,
"node_paths": [],
"nodes": PackedInt32Array(-1, -1, 1, 0, -1, 1, 2, 0, 0),
"variants": [Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.5, 0)],
"version": 3
}
[sub_resource type="CylinderMesh" id="CylinderMesh_77wtl"]
top_radius = 0.0
bottom_radius = 0.05
height = 0.1
[sub_resource type="SceneReplicationConfig" id="SceneReplicationConfig_klfjt"]
properties/0/path = NodePath(".:position")
properties/0/spawn = true
properties/0/replication_mode = 0
[sub_resource type="SceneReplicationConfig" id="SceneReplicationConfig_ga4ik"]
properties/0/path = NodePath(".:position")
properties/0/spawn = false
properties/0/replication_mode = 1
[node name="Player" type="CharacterBody3D" node_paths=PackedStringArray("player_movement_controller", "collision_shape", "camera", "spawn_sync_node", "update_sync_node")]
script = ExtResource("1_ily3q")
player_movement_controller = NodePath("PlayerMovementController")
collision_shape = NodePath("CollisionShape3D")
camera = NodePath("PositionInterpolation/RotationInterpolation/PlayerXROrigin3D/PlayerXRCamera3D")
spawn_sync_node = NodePath("MultiplayerSynchronizerSpawn")
update_sync_node = NodePath("MultiplayerSynchronizerUpdate")
[node name="PlayerMovementController" parent="." node_paths=PackedStringArray("character_body", "xr_origin", "xr_camera", "position_interpolation", "rotation_interpolation") instance=ExtResource("2_lxa8t")]
character_body = NodePath("..")
xr_origin = NodePath("../PositionInterpolation/RotationInterpolation/PlayerXROrigin3D")
xr_camera = NodePath("../PositionInterpolation/RotationInterpolation/PlayerXROrigin3D/PlayerXRCamera3D")
position_interpolation = NodePath("../PositionInterpolation")
rotation_interpolation = NodePath("../PositionInterpolation/RotationInterpolation")
[node name="PlayerSnapshotInterpolation" type="Node" parent="." node_paths=PackedStringArray("synced_tracker_space")]
script = ExtResource("3_ewiba")
synced_tracker_space = NodePath("../PositionInterpolation/RotationInterpolation/SyncedTrackerSpace")
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.75, 0)
shape = SubResource("CapsuleShape3D_ks12f")
disabled = true
[node name="PositionInterpolation" type="Node3D" parent="."]
script = ExtResource("2_jhmsa")
[node name="RotationInterpolation" type="Node3D" parent="PositionInterpolation" node_paths=PackedStringArray("anchor_node")]
transform = Transform3D(1.00302, 0, 0, 0, 1.00302, 0, 0, 0, 1.00302, 0, 0, 0)
script = ExtResource("3_km368")
anchor_node = NodePath("PlayerXROrigin3D/PlayerXRCamera3D")
[node name="PlayerXROrigin3D" type="XROrigin3D" parent="PositionInterpolation/RotationInterpolation" node_paths=PackedStringArray("xr_camera", "player_movement_controller")]
current = true
script = ExtResource("4_pk7ri")
xr_camera = NodePath("PlayerXRCamera3D")
player_movement_controller = NodePath("../../../PlayerMovementController")
xr_camera_scene = SubResource("PackedScene_81y8k")
head_child_scenes = Array[PackedScene]([ExtResource("6_majn5")])
left_hand_child_scenes = Array[PackedScene]([ExtResource("7_6wp6e"), ExtResource("8_qv00o"), ExtResource("9_nap77")])
right_hand_child_scenes = Array[PackedScene]([ExtResource("10_6s44a"), ExtResource("11_edqlr"), ExtResource("9_nap77")])
[node name="PlayerXRCamera3D" parent="PositionInterpolation/RotationInterpolation/PlayerXROrigin3D" instance=ExtResource("5_poivo")]
[node name="SyncedTrackerSpace" type="Node3D" parent="PositionInterpolation/RotationInterpolation" node_paths=PackedStringArray("xr_origin", "synced_head_tracker", "synced_left_tracker", "synced_right_tracker")]
process_priority = -1
editor_description = "This node is a container for synced trackers. If the VSKPlayer has authority, they will update the position of the synced trackers inside this node to match their local trackers. These synced trackers will then by used by the MultiplayerSynchronizer to transmit positional data to other clients, which will then be used for the avatar's representation. The tracker space is positionally relative to the XRCamera."
script = ExtResource("14_ldvw4")
xr_origin = NodePath("../PlayerXROrigin3D")
synced_head_tracker = NodePath("SyncedHeadTracker")
synced_left_tracker = NodePath("SyncedLeftHandTracker")
synced_right_tracker = NodePath("SyncedRightHandTracker")
[node name="SyncedHeadTracker" type="Node3D" parent="PositionInterpolation/RotationInterpolation/SyncedTrackerSpace"]
[node name="MeshInstance3D" type="MeshInstance3D" parent="PositionInterpolation/RotationInterpolation/SyncedTrackerSpace/SyncedHeadTracker"]
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 0, 0, 0)
mesh = SubResource("CylinderMesh_77wtl")
skeleton = NodePath("../..")
[node name="SyncedLeftHandTracker" type="Node3D" parent="PositionInterpolation/RotationInterpolation/SyncedTrackerSpace"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.3, -0.2, -0.5)
[node name="MeshInstance3D" type="MeshInstance3D" parent="PositionInterpolation/RotationInterpolation/SyncedTrackerSpace/SyncedLeftHandTracker"]
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 0, 0, 0)
mesh = SubResource("CylinderMesh_77wtl")
skeleton = NodePath("../..")
[node name="SyncedRightHandTracker" type="Node3D" parent="PositionInterpolation/RotationInterpolation/SyncedTrackerSpace"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.3, -0.2, -0.5)
[node name="MeshInstance3D" type="MeshInstance3D" parent="PositionInterpolation/RotationInterpolation/SyncedTrackerSpace/SyncedRightHandTracker"]
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 0, 0, 0)
mesh = SubResource("CylinderMesh_77wtl")
skeleton = NodePath("../..")
[node name="MultiplayerSynchronizerSpawn" type="MultiplayerSynchronizer" parent="."]
unique_name_in_owner = true
editor_description = "This node is always set up to have its authority owned by the server host, but is only used for the initial spawn state."
replication_config = SubResource("SceneReplicationConfig_klfjt")
[node name="MultiplayerSynchronizerUpdate" type="MultiplayerSynchronizer" parent="."]
unique_name_in_owner = true
replication_config = SubResource("SceneReplicationConfig_ga4ik")
[connection signal="synchronized" from="MultiplayerSynchronizerUpdate" to="PlayerSnapshotInterpolation" method="_on_update_synchronized"]