110 lines
5.1 KiB
Text
110 lines
5.1 KiB
Text
[gd_scene load_steps=20 format=3 uid="uid://cs6dxfu5owcgo"]
|
|
|
|
[ext_resource type="Material" path="res://assets/wahooney.itch.io/blue_grid.tres" id="1"]
|
|
[ext_resource type="Script" path="res://addons/godot-xr-tools/interactables/interactable_hinge.gd" id="2"]
|
|
[ext_resource type="Material" path="res://assets/wahooney.itch.io/brown_grid_triplanar.tres" id="3"]
|
|
[ext_resource type="Script" path="res://addons/godot-xr-tools/interactables/interactable_handle.gd" id="4"]
|
|
[ext_resource type="PackedScene" uid="uid://c25yxb0vt53vc" path="res://addons/godot-xr-tools/objects/grab_points/grab_point_hand_left.tscn" id="4_psbg5"]
|
|
[ext_resource type="Animation" uid="uid://db62hs5s4n2b3" path="res://addons/godot-xr-tools/hands/animations/left/Grip 4.res" id="5_ha7r4"]
|
|
[ext_resource type="Script" path="res://addons/godot-xr-tools/hands/poses/hand_pose_settings.gd" id="6_gg8v3"]
|
|
[ext_resource type="PackedScene" uid="uid://ctw7nbntd5pcj" path="res://addons/godot-xr-tools/objects/grab_points/grab_point_hand_right.tscn" id="7_xphfh"]
|
|
[ext_resource type="Animation" uid="uid://d1xnpyc08njjx" path="res://addons/godot-xr-tools/hands/animations/right/Grip 4.res" id="8_txsdp"]
|
|
[ext_resource type="PackedScene" uid="uid://ca3daqmpo0tua" path="res://addons/godot-xr-tools/objects/grab_points/grab_point_redirect.tscn" id="10_2yftn"]
|
|
|
|
[sub_resource type="BoxShape3D" id="1"]
|
|
size = Vector3(0.2, 0.6, 0.1)
|
|
|
|
[sub_resource type="BoxMesh" id="2"]
|
|
size = Vector3(0.2, 0.6, 0.1)
|
|
|
|
[sub_resource type="BoxShape3D" id="3"]
|
|
size = Vector3(0.04, 0.04, 0.2)
|
|
|
|
[sub_resource type="SphereShape3D" id="4"]
|
|
radius = 0.06
|
|
|
|
[sub_resource type="BoxMesh" id="5"]
|
|
size = Vector3(0.04, 0.04, 0.2)
|
|
|
|
[sub_resource type="SphereMesh" id="6"]
|
|
radius = 0.06
|
|
height = 0.12
|
|
radial_segments = 16
|
|
rings = 8
|
|
|
|
[sub_resource type="Resource" id="Resource_v6sel"]
|
|
script = ExtResource("6_gg8v3")
|
|
open_pose = ExtResource("5_ha7r4")
|
|
closed_pose = ExtResource("5_ha7r4")
|
|
|
|
[sub_resource type="Resource" id="Resource_t7yav"]
|
|
script = ExtResource("6_gg8v3")
|
|
open_pose = ExtResource("8_txsdp")
|
|
closed_pose = ExtResource("8_txsdp")
|
|
|
|
[sub_resource type="SphereShape3D" id="7"]
|
|
margin = 0.12
|
|
radius = 0.06
|
|
|
|
[node name="LeverSmooth" type="Node3D"]
|
|
|
|
[node name="Frame" type="StaticBody3D" parent="."]
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="Frame"]
|
|
shape = SubResource("1")
|
|
|
|
[node name="MeshInstance3D" type="MeshInstance3D" parent="Frame"]
|
|
mesh = SubResource("2")
|
|
surface_material_override/0 = ExtResource("1")
|
|
|
|
[node name="LeverOrigin" type="Node3D" parent="."]
|
|
transform = Transform3D(1, -1.06581e-14, 0, 1.06581e-14, 1, 0, 0, 0, 1, 0, 0, 0)
|
|
|
|
[node name="InteractableLever" type="Node3D" parent="LeverOrigin"]
|
|
script = ExtResource("2")
|
|
|
|
[node name="HingeBody" type="StaticBody3D" parent="LeverOrigin/InteractableLever"]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0.1)
|
|
|
|
[node name="BarCollision" type="CollisionShape3D" parent="LeverOrigin/InteractableLever/HingeBody"]
|
|
shape = SubResource("3")
|
|
|
|
[node name="HandleCollision" type="CollisionShape3D" parent="LeverOrigin/InteractableLever/HingeBody"]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0.1)
|
|
shape = SubResource("4")
|
|
|
|
[node name="BarMesh" type="MeshInstance3D" parent="LeverOrigin/InteractableLever/HingeBody"]
|
|
mesh = SubResource("5")
|
|
surface_material_override/0 = ExtResource("3")
|
|
|
|
[node name="HandleMesh" type="MeshInstance3D" parent="LeverOrigin/InteractableLever/HingeBody"]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0.1)
|
|
mesh = SubResource("6")
|
|
surface_material_override/0 = ExtResource("3")
|
|
|
|
[node name="GrabPointHandLeft" parent="LeverOrigin/InteractableLever/HingeBody/HandleMesh" instance=ExtResource("4_psbg5")]
|
|
transform = Transform3D(-4.37114e-08, 1, -7.53641e-15, -0.707107, -3.09086e-08, -0.707107, -0.707107, -3.09086e-08, 0.707107, 0.05, 0.0759278, -0.0419973)
|
|
hand_pose = SubResource("Resource_v6sel")
|
|
|
|
[node name="GrabPointHandRight" parent="LeverOrigin/InteractableLever/HingeBody/HandleMesh" instance=ExtResource("7_xphfh")]
|
|
transform = Transform3D(-4.37114e-08, -1, -1.02355e-14, 0.642788, -2.80971e-08, -0.766044, 0.766044, -3.34849e-08, 0.642788, -0.05, 0.0759278, -0.0419973)
|
|
hand_pose = SubResource("Resource_t7yav")
|
|
|
|
[node name="HandleOrigin" type="Node3D" parent="LeverOrigin/InteractableLever"]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0.2)
|
|
|
|
[node name="InteractableHandle" type="RigidBody3D" parent="LeverOrigin/InteractableLever/HandleOrigin"]
|
|
collision_layer = 262144
|
|
collision_mask = 0
|
|
freeze = true
|
|
script = ExtResource("4")
|
|
picked_up_layer = 0
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="LeverOrigin/InteractableLever/HandleOrigin/InteractableHandle"]
|
|
shape = SubResource("7")
|
|
|
|
[node name="GrabPointRedirectLeft" parent="LeverOrigin/InteractableLever/HandleOrigin/InteractableHandle" node_paths=PackedStringArray("target") instance=ExtResource("10_2yftn")]
|
|
target = NodePath("../../../HingeBody/HandleMesh/GrabPointHandLeft")
|
|
|
|
[node name="GrabPointRedirectRight" parent="LeverOrigin/InteractableLever/HandleOrigin/InteractableHandle" node_paths=PackedStringArray("target") instance=ExtResource("10_2yftn")]
|
|
target = NodePath("../../../HingeBody/HandleMesh/GrabPointHandRight")
|