vrp-years-apart/player.tscn

58 lines
2.4 KiB
Plaintext

[gd_scene load_steps=9 format=3 uid="uid://srkkei4i3bwx"]
[ext_resource type="PackedScene" uid="uid://njx823gyk04n" path="res://addons/godot-xr-tools/hands/scenes/highpoly/left_hand.tscn" id="2_hqtel"]
[ext_resource type="PackedScene" uid="uid://raeeicvvindd" path="res://addons/godot-xr-tools/hands/scenes/highpoly/right_hand.tscn" id="2_i3pqv"]
[ext_resource type="PackedScene" uid="uid://bl2nuu3qhlb5k" path="res://addons/godot-xr-tools/functions/movement_direct.tscn" id="2_sweqy"]
[ext_resource type="PackedScene" uid="uid://diyu06cw06syv" path="res://addons/godot-xr-tools/player/player_body.tscn" id="4_2hs0m"]
[ext_resource type="Script" uid="uid://ceqc6auge0rjs" path="res://ChronoWatch.gd" id="4_sweqy"]
[sub_resource type="BoxShape3D" id="BoxShape3D_hqtel"]
size = Vector3(0.1, 0.1, 0.2)
[sub_resource type="SphereMesh" id="SphereMesh_hqtel"]
radius = 0.05
height = 0.1
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_sweqy"]
[node name="Player" type="XROrigin3D"]
[node name="Camera" type="XRCamera3D" parent="."]
[node name="LeftController" type="XRController3D" parent="."]
tracker = &"left_hand"
[node name="MovementDirect" parent="LeftController" instance=ExtResource("2_sweqy")]
strafe = true
[node name="Area3D" type="Area3D" parent="LeftController"]
[node name="LeftHand" parent="LeftController/Area3D" instance=ExtResource("2_hqtel")]
hand_offset_mode = 4
[node name="CollisionShape3D" type="CollisionShape3D" parent="LeftController/Area3D"]
shape = SubResource("BoxShape3D_hqtel")
[node name="RightController" type="XRController3D" parent="."]
tracker = &"right_hand"
[node name="Area3D" type="Area3D" parent="RightController"]
[node name="RightHand" parent="RightController/Area3D" instance=ExtResource("2_i3pqv")]
hand_offset_mode = 4
[node name="CollisionShape3D" type="CollisionShape3D" parent="RightController/Area3D"]
shape = SubResource("BoxShape3D_hqtel")
[node name="Watch" type="Node3D" parent="RightController/Area3D" node_paths=PackedStringArray("controller", "player_body")]
script = ExtResource("4_sweqy")
controller = NodePath("../..")
player_body = NodePath("../../../PlayerBody")
[node name="CSGMesh3D" type="CSGMesh3D" parent="RightController/Area3D/Watch"]
mesh = SubResource("SphereMesh_hqtel")
material = SubResource("StandardMaterial3D_sweqy")
[node name="PlayerBody" parent="." instance=ExtResource("4_2hs0m")]
player_height_rate = 20.0