nordic2025/resources/player.tscn

89 lines
3.6 KiB
Plaintext

[gd_scene load_steps=7 format=3 uid="uid://8fmy7u5fyonc"]
[ext_resource type="Script" uid="uid://bf27rxigs8b22" path="res://scripts/XRHand.cs" id="1_gyc3h"]
[ext_resource type="Script" uid="uid://typrll7n6g3e" path="res://scripts/Mouth.cs" id="3_un1ji"]
[sub_resource type="CapsuleMesh" id="CapsuleMesh_ij1v8"]
radius = 0.05
height = 0.1
[sub_resource type="SphereShape3D" id="SphereShape3D_iyx0m"]
radius = 0.01
[sub_resource type="SphereShape3D" id="SphereShape3D_un1ji"]
radius = 0.1
[sub_resource type="SphereShape3D" id="SphereShape3D_ucfva"]
radius = 0.03
[node name="XROrigin3D" type="XROrigin3D"]
current = true
[node name="LeftHand" type="XRController3D" parent="." node_paths=PackedStringArray("rb")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.381652, 0.302346, 0)
tracker = &"left_hand"
script = ExtResource("1_gyc3h")
rb = NodePath("RigidBody3D")
[node name="MeshInstance3D" type="MeshInstance3D" parent="LeftHand"]
mesh = SubResource("CapsuleMesh_ij1v8")
[node name="RigidBody3D" type="RigidBody3D" parent="LeftHand"]
freeze = true
freeze_mode = 1
[node name="CollisionShape3D" type="CollisionShape3D" parent="LeftHand/RigidBody3D"]
shape = SubResource("SphereShape3D_iyx0m")
disabled = true
[node name="Area3D" type="Area3D" parent="LeftHand"]
[node name="CollisionShape3D" type="CollisionShape3D" parent="LeftHand/Area3D"]
shape = SubResource("SphereShape3D_un1ji")
[node name="RightHand" type="XRController3D" parent="." node_paths=PackedStringArray("rb")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.412168, 0.292391, 0)
tracker = &"right_hand"
script = ExtResource("1_gyc3h")
rb = NodePath("RigidBody3D")
[node name="MeshInstance3D" type="MeshInstance3D" parent="RightHand"]
mesh = SubResource("CapsuleMesh_ij1v8")
[node name="RigidBody3D" type="RigidBody3D" parent="RightHand"]
freeze = true
freeze_mode = 1
[node name="CollisionShape3D" type="CollisionShape3D" parent="RightHand/RigidBody3D"]
shape = SubResource("SphereShape3D_iyx0m")
disabled = true
[node name="Area3D" type="Area3D" parent="RightHand"]
[node name="CollisionShape3D" type="CollisionShape3D" parent="RightHand/Area3D"]
shape = SubResource("SphereShape3D_un1ji")
[node name="XRCamera3D" type="XRCamera3D" parent="." node_paths=PackedStringArray("RightHand", "LeftHand")]
transform = Transform3D(0.447029, 0.69956, -0.557478, -0.351336, 0.710443, 0.609782, 0.822635, -0.0767277, 0.563369, 0, 0.821388, 0.40056)
near = 0.005
script = ExtResource("3_un1ji")
RightHand = NodePath("../RightHand")
LeftHand = NodePath("../LeftHand")
[node name="Area3D" type="Area3D" parent="XRCamera3D"]
[node name="CollisionShape3D" type="CollisionShape3D" parent="XRCamera3D/Area3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.0335343, -0.0395132)
shape = SubResource("SphereShape3D_ucfva")
[connection signal="button_pressed" from="LeftHand" to="LeftHand" method="OnPress"]
[connection signal="button_released" from="LeftHand" to="LeftHand" method="OnRelease"]
[connection signal="input_float_changed" from="LeftHand" to="LeftHand" method="OnFloat"]
[connection signal="body_entered" from="LeftHand/Area3D" to="LeftHand" method="OnEnter"]
[connection signal="body_exited" from="LeftHand/Area3D" to="LeftHand" method="OnLeave"]
[connection signal="button_pressed" from="RightHand" to="RightHand" method="OnPress"]
[connection signal="button_released" from="RightHand" to="RightHand" method="OnRelease"]
[connection signal="input_float_changed" from="RightHand" to="RightHand" method="OnFloat"]
[connection signal="body_entered" from="RightHand/Area3D" to="RightHand" method="OnEnter"]
[connection signal="body_exited" from="RightHand/Area3D" to="RightHand" method="OnLeave"]