add vr template project

This commit is contained in:
Guillaume Vern
2025-10-08 11:10:13 +02:00
parent 2cda32f24c
commit 97f183e59f
613 changed files with 37826 additions and 1499 deletions
+81
View File
@@ -0,0 +1,81 @@
[gd_scene load_steps=16 format=3 uid="uid://87ayr1op44nh"]
[ext_resource type="PackedScene" uid="uid://cc2akik80xtnb" path="res://components/persistent/persistent_item.tscn" id="1_62chp"]
[ext_resource type="Resource" uid="uid://bybqoawclvbw5" path="res://game/items/backpack/backpack_type.tres" id="2_t0xmd"]
[ext_resource type="PackedScene" uid="uid://cle28r34dsj5m" path="res://game/items/backpack/boxed_backpack.tscn" id="3_phepc"]
[ext_resource type="PackedScene" uid="uid://c25yxb0vt53vc" path="res://addons/godot-xr-tools/objects/grab_points/grab_point_hand_left.tscn" id="4_gyi5s"]
[ext_resource type="Animation" uid="uid://plad1r85f7ws" path="res://addons/godot-xr-tools/hands/animations/left/Grip.res" id="4_iqsjp"]
[ext_resource type="PackedScene" uid="uid://ctw7nbntd5pcj" path="res://addons/godot-xr-tools/objects/grab_points/grab_point_hand_right.tscn" id="5_l0b75"]
[ext_resource type="Script" path="res://addons/godot-xr-tools/hands/poses/hand_pose_settings.gd" id="5_ne2cg"]
[ext_resource type="PackedScene" uid="uid://dh8grd7s3n8kg" path="res://addons/godot-xr-tools/objects/grab_points/grab_point_snap.tscn" id="6_n8c7u"]
[ext_resource type="PackedScene" uid="uid://qmejywplaagw" path="res://components/persistent/persistent_pocket.tscn" id="6_whllu"]
[ext_resource type="Animation" uid="uid://ccds2u22gbxn7" path="res://addons/godot-xr-tools/hands/animations/right/Grip.res" id="7_acm53"]
[ext_resource type="PackedScene" uid="uid://da2qgxxwwitl6" path="res://addons/godot-xr-tools/objects/highlight/highlight_ring.tscn" id="7_bllxq"]
[sub_resource type="ConvexPolygonShape3D" id="ConvexPolygonShape3D_lp6as"]
points = PackedVector3Array(-0.2, -0.275, -0.125, -0.2, -0.275, 0.125, -0.2, 0.275, -0.125, 0.2, -0.275, -0.125, 0.2, -0.275, 0.125, -0.2, 0.275, 0.125, 0.2, 0.275, -0.125, 0.2, 0.275, 0.125)
[sub_resource type="ConvexPolygonShape3D" id="ConvexPolygonShape3D_wxdd7"]
points = PackedVector3Array(-0.075, -0.2625, 0, -0.0649569, -0.2625, -0.0375, -0.0649569, -0.2625, 0.0374853, -0.075, 0.2625, 0, -0.0375, -0.2625, -0.0649569, -0.0649569, 0.2625, -0.0375, -0.0375, -0.2625, 0.0649422, -0.0649569, 0.2625, 0.0374853, 0, -0.2625, -0.075, -0.0375, 0.2625, -0.0649569, 0, -0.2625, 0.075, -0.0375, 0.2625, 0.0649422, 0.0375, -0.2625, -0.0649569, 0, 0.2625, -0.075, 0.0375, -0.2625, 0.0649422, 0, 0.2625, 0.075, 0.0649422, -0.2625, -0.0375147, 0.0375, 0.2625, -0.0649569, 0.0649422, -0.2625, 0.0374853, 0.0375, 0.2625, 0.0649422, 0.075, -0.2625, 0, 0.0649422, 0.2625, -0.0375147, 0.0649422, 0.2625, 0.0374853, 0.075, 0.2625, 0)
[sub_resource type="Resource" id="Resource_yqryf"]
script = ExtResource("5_ne2cg")
open_pose = ExtResource("4_iqsjp")
closed_pose = ExtResource("4_iqsjp")
[sub_resource type="Resource" id="Resource_mvhry"]
script = ExtResource("5_ne2cg")
open_pose = ExtResource("7_acm53")
closed_pose = ExtResource("7_acm53")
[node name="Backpack" groups=["backpack"] instance=ExtResource("1_62chp")]
item_id = "backpack"
item_type = ExtResource("2_t0xmd")
auto_return = true
auto_return_timeout = 2.0
[node name="CollisionShape3D" parent="." index="0"]
shape = SubResource("ConvexPolygonShape3D_lp6as")
[node name="CollisionShape3D2" type="CollisionShape3D" parent="." index="1"]
transform = Transform3D(-4.37114e-08, 1, 0, -1, -4.37114e-08, 0, 0, 0, 1, 0, -0.280267, 0.178486)
shape = SubResource("ConvexPolygonShape3D_wxdd7")
[node name="BoxedBackpack" parent="." index="2" instance=ExtResource("3_phepc")]
[node name="GrabPointHandLeft" parent="." index="3" instance=ExtResource("4_gyi5s")]
transform = Transform3D(-4.37114e-08, 1, 0, -1, -4.37114e-08, 0, 0, 0, 1, 0.05, 0.3, 0.075)
hand_pose = SubResource("Resource_yqryf")
[node name="GrabPointHandRight" parent="." index="4" instance=ExtResource("5_l0b75")]
transform = Transform3D(-4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0, 0, 1, -0.05, 0.3, 0.075)
hand_pose = SubResource("Resource_mvhry")
[node name="GrabPointSnap" parent="." index="5" instance=ExtResource("6_n8c7u")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.1, 0.1)
[node name="BackPocket" parent="." index="6" instance=ExtResource("6_whllu")]
transform = Transform3D(0.3, 0, 0, 0, 0.0520944, -0.295442, 0, 0.295442, 0.0520944, 0, -0.1, -0.25)
pocket_id = "backpack_back_pocket"
snap_require = "fits_in_storage"
[node name="HighlightRing" parent="BackPocket" index="2" instance=ExtResource("7_bllxq")]
[node name="LeftPocket" parent="." index="7" instance=ExtResource("6_whllu")]
transform = Transform3D(-1.31134e-08, 0.3, 0, -0.3, -1.31134e-08, 0, 0, 0, 0.3, 0.250293, 0, 0)
pocket_id = "backpack_left_pocket"
snap_require = "fits_in_storage"
[node name="HighlightRing" parent="LeftPocket" index="2" instance=ExtResource("7_bllxq")]
transform = Transform3D(-4.37114e-08, 0, -1, 0, 1, 0, 1, 0, -4.37114e-08, 0, 0, 0)
[node name="RightPocket" parent="." index="8" instance=ExtResource("6_whllu")]
transform = Transform3D(-1.31134e-08, -0.3, 0, 0.3, -1.31134e-08, 0, 0, 0, 0.3, -0.25, 0, 0)
pocket_id = "backpack_right_pocket"
snap_require = "fits_in_storage"
[node name="HighlightRing" parent="RightPocket" index="2" instance=ExtResource("7_bllxq")]
transform = Transform3D(-4.37114e-08, 0, -1, 0, 1, 0, 1, 0, -4.37114e-08, 0, 0, 0)
[node name="HighlightRing" parent="." index="9" instance=ExtResource("7_bllxq")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.25, 0.1)
+8
View File
@@ -0,0 +1,8 @@
[gd_resource type="Resource" script_class="ItemType" load_steps=2 format=3 uid="uid://bybqoawclvbw5"]
[ext_resource type="Script" path="res://components/persistent/persistent_item_type.gd" id="1_nq2x7"]
[resource]
script = ExtResource("1_nq2x7")
type_id = "backpack"
instance_scene = "res://game/items/backpack/backpack.tscn"
+72
View File
@@ -0,0 +1,72 @@
[gd_scene load_steps=9 format=3 uid="uid://cle28r34dsj5m"]
[ext_resource type="Material" uid="uid://cjylinr1vdjcw" path="res://assets/prototype_materials/dark_brown.tres" id="1_knbky"]
[ext_resource type="Material" uid="uid://b1o2xnr4gi6r4" path="res://assets/prototype_materials/sandstone.tres" id="2_xlphg"]
[sub_resource type="BoxMesh" id="BoxMesh_87stb"]
size = Vector3(0.165, 0.015, 0.135)
[sub_resource type="BoxMesh" id="BoxMesh_bj2r6"]
size = Vector3(0.4, 0.55, 0.25)
[sub_resource type="CylinderMesh" id="CylinderMesh_xb4bx"]
top_radius = 0.075
bottom_radius = 0.075
height = 0.525
radial_segments = 12
[sub_resource type="CylinderMesh" id="CylinderMesh_k3kpj"]
top_radius = 0.085
bottom_radius = 0.085
height = 0.035
radial_segments = 12
[sub_resource type="PrismMesh" id="PrismMesh_rq3up"]
left_to_right = 0.2
size = Vector3(1, 0.1, 0.4)
[sub_resource type="PlaneMesh" id="PlaneMesh_lw0r6"]
size = Vector2(0.335, 0.47)
[node name="BoxedBackpack" type="Node3D"]
[node name="MeshInstance3D2" type="MeshInstance3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 0.792864, 0.609398, 0, -0.609398, 0.792864, 0, 0.285, 0.115)
mesh = SubResource("BoxMesh_87stb")
skeleton = NodePath("../MeshInstance3D")
surface_material_override/0 = ExtResource("1_knbky")
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
mesh = SubResource("BoxMesh_bj2r6")
skeleton = NodePath("../..")
surface_material_override/0 = ExtResource("1_knbky")
[node name="MeshInstance3D3" type="MeshInstance3D" parent="."]
transform = Transform3D(-4.37114e-08, 1, 0, -1, -4.37114e-08, 0, 0, 0, 1, 0, -0.280267, 0.178486)
mesh = SubResource("CylinderMesh_xb4bx")
skeleton = NodePath("../..")
surface_material_override/0 = ExtResource("2_xlphg")
[node name="MeshInstance3D4" type="MeshInstance3D" parent="."]
transform = Transform3D(-4.37114e-08, 1, 0, -1, -4.37114e-08, 0, 0, 0, 1, -0.17, -0.28, 0.178)
mesh = SubResource("CylinderMesh_k3kpj")
skeleton = NodePath("../..")
surface_material_override/0 = ExtResource("1_knbky")
[node name="MeshInstance3D5" type="MeshInstance3D" parent="."]
transform = Transform3D(-4.37114e-08, 1, 0, -1, -4.37114e-08, 0, 0, 0, 1, 0.17, -0.28, 0.178)
mesh = SubResource("CylinderMesh_k3kpj")
skeleton = NodePath("../..")
surface_material_override/0 = ExtResource("1_knbky")
[node name="MeshInstance3D6" type="MeshInstance3D" parent="."]
transform = Transform3D(1.05088e-15, -4.37114e-08, 1, -0.55, -4.37114e-08, 0, 2.40413e-08, -1, -4.37114e-08, 0, -0.001, -0.174805)
mesh = SubResource("PrismMesh_rq3up")
skeleton = NodePath("../..")
surface_material_override/0 = ExtResource("1_knbky")
[node name="MeshInstance3D7" type="MeshInstance3D" parent="."]
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0, 0.125514)
mesh = SubResource("PlaneMesh_lw0r6")
skeleton = NodePath("../..")
surface_material_override/0 = ExtResource("2_xlphg")
+29
View File
@@ -0,0 +1,29 @@
[gd_scene load_steps=8 format=3 uid="uid://dbepe4i2q62yy"]
[ext_resource type="PackedScene" uid="uid://cc2akik80xtnb" path="res://components/persistent/persistent_item.tscn" id="1_j3qg2"]
[ext_resource type="Resource" uid="uid://dag4mhfys4x5d" path="res://game/items/crate/crate_type.tres" id="2_26s4t"]
[ext_resource type="Material" uid="uid://c386ygo86nqfc" path="res://assets/prototype_materials/wood_brown.tres" id="3_3s4ke"]
[ext_resource type="PackedScene" uid="uid://c25yxb0vt53vc" path="res://addons/godot-xr-tools/objects/grab_points/grab_point_hand_left.tscn" id="4_6v1fn"]
[ext_resource type="PackedScene" uid="uid://ctw7nbntd5pcj" path="res://addons/godot-xr-tools/objects/grab_points/grab_point_hand_right.tscn" id="5_hu3nh"]
[sub_resource type="BoxShape3D" id="BoxShape3D_54n81"]
[sub_resource type="BoxMesh" id="BoxMesh_6eydf"]
material = ExtResource("3_3s4ke")
[node name="Crate" instance=ExtResource("1_j3qg2")]
item_id = "crate_"
item_type = ExtResource("2_26s4t")
second_hand_grab = 1
[node name="CollisionShape3D" parent="." index="0"]
shape = SubResource("BoxShape3D_54n81")
[node name="MeshInstance3D" type="MeshInstance3D" parent="." index="1"]
mesh = SubResource("BoxMesh_6eydf")
[node name="GrabPointHandLeft" parent="." index="2" instance=ExtResource("4_6v1fn")]
transform = Transform3D(-4.37114e-08, 1, 0, -1, -4.37114e-08, 0, 0, 0, 1, 0, 0.5, 0.4)
[node name="GrabPointHandRight" parent="." index="3" instance=ExtResource("5_hu3nh")]
transform = Transform3D(-4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0, 0, 1, 0, 0.5, 0.4)
+8
View File
@@ -0,0 +1,8 @@
[gd_resource type="Resource" script_class="ItemType" load_steps=2 format=3 uid="uid://dag4mhfys4x5d"]
[ext_resource type="Script" path="res://components/persistent/persistent_item_type.gd" id="1_uqv6g"]
[resource]
script = ExtResource("1_uqv6g")
type_id = "crate_type"
instance_scene = "res://game/items/crate/crate.tscn"
+11
View File
@@ -0,0 +1,11 @@
[gd_resource type="Resource" script_class="PersistentItemDatabase" load_steps=6 format=3 uid="uid://5sqmlq5ruolr"]
[ext_resource type="Resource" uid="uid://bybqoawclvbw5" path="res://game/items/backpack/backpack_type.tres" id="1_a6dgf"]
[ext_resource type="Script" path="res://components/persistent/persistent_item_database.gd" id="1_em17a"]
[ext_resource type="Resource" uid="uid://dag4mhfys4x5d" path="res://game/items/crate/crate_type.tres" id="2_3ixst"]
[ext_resource type="Resource" uid="uid://bjewm2x0kyx28" path="res://game/items/rock/rock_type.tres" id="3_s3pwk"]
[ext_resource type="Resource" uid="uid://c61hljsd7ejeo" path="res://game/items/toolbox/toolbox_type.tres" id="4_25idd"]
[resource]
script = ExtResource("1_em17a")
items = Array[Resource("res://components/persistent/persistent_item_type.gd")]([ExtResource("1_a6dgf"), ExtResource("2_3ixst"), ExtResource("3_s3pwk"), ExtResource("4_25idd")])
+52
View File
@@ -0,0 +1,52 @@
[gd_scene load_steps=14 format=3 uid="uid://c4rpcr7s5pt3v"]
[ext_resource type="PackedScene" uid="uid://cc2akik80xtnb" path="res://components/persistent/persistent_item.tscn" id="1_87r61"]
[ext_resource type="Material" uid="uid://ccdofvku4c7w3" path="res://assets/prototype_materials/stone_grey.tres" id="2_1ev3x"]
[ext_resource type="Resource" uid="uid://bjewm2x0kyx28" path="res://game/items/rock/rock_type.tres" id="2_53gts"]
[ext_resource type="PackedScene" uid="uid://c25yxb0vt53vc" path="res://addons/godot-xr-tools/objects/grab_points/grab_point_hand_left.tscn" id="3_08c2g"]
[ext_resource type="PackedScene" uid="uid://ctw7nbntd5pcj" path="res://addons/godot-xr-tools/objects/grab_points/grab_point_hand_right.tscn" id="4_m4f38"]
[ext_resource type="Animation" uid="uid://bediglpx0rj7i" path="res://addons/godot-xr-tools/hands/animations/left/Grip 5.res" id="5_rtm64"]
[ext_resource type="Script" path="res://addons/godot-xr-tools/hands/poses/hand_pose_settings.gd" id="6_34xyl"]
[ext_resource type="Animation" uid="uid://s1vqcxyqcvea" path="res://addons/godot-xr-tools/hands/animations/right/Grip 5.res" id="8_kmf2q"]
[ext_resource type="PackedScene" uid="uid://da2qgxxwwitl6" path="res://addons/godot-xr-tools/objects/highlight/highlight_ring.tscn" id="9_kvg40"]
[sub_resource type="ConvexPolygonShape3D" id="ConvexPolygonShape3D_ys4vs"]
points = PackedVector3Array(-0.11756, 0, -0.161803, -0.0831523, -0.106069, -0.114418, -0.190211, 0, 0.0617738, -0.0831523, 0.10604, -0.114418, 0.117523, 0, -0.161803, 0.083115, -0.106069, -0.114418, 1.49012e-08, -0.15, -2.60025e-05, -0.134503, -0.106069, 0.0436766, -0.134503, 0.10604, 0.0436766, 1.49012e-08, 0, 0.2, 1.49012e-08, 0.15, -2.60025e-05, 0.083115, 0.10604, -0.114418, 0.190211, 0, 0.0617738, 0.134466, -0.106069, 0.0436766, 1.49012e-08, -0.106069, 0.141388, 1.49012e-08, 0.10604, 0.141388, 0.134466, 0.10604, 0.0436766)
[sub_resource type="SphereMesh" id="SphereMesh_xrq4h"]
material = ExtResource("2_1ev3x")
radius = 0.2
height = 0.3
radial_segments = 5
rings = 3
[sub_resource type="Resource" id="Resource_m0rx4"]
script = ExtResource("6_34xyl")
open_pose = ExtResource("5_rtm64")
closed_pose = ExtResource("5_rtm64")
[sub_resource type="Resource" id="Resource_vx8u2"]
script = ExtResource("6_34xyl")
open_pose = ExtResource("8_kmf2q")
closed_pose = ExtResource("8_kmf2q")
[node name="Rock" groups=["fits_in_pocket", "fits_in_storage"] instance=ExtResource("1_87r61")]
item_id = "rock_"
item_type = ExtResource("2_53gts")
second_hand_grab = 2
[node name="CollisionShape3D" parent="." index="0"]
shape = SubResource("ConvexPolygonShape3D_ys4vs")
[node name="MeshInstance3D" type="MeshInstance3D" parent="." index="1"]
mesh = SubResource("SphereMesh_xrq4h")
[node name="GrabPointHandLeft" parent="." index="2" instance=ExtResource("3_08c2g")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.16, 0.045, -0.045)
hand_pose = SubResource("Resource_m0rx4")
[node name="GrabPointHandRight" parent="." index="3" instance=ExtResource("4_m4f38")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.16, 0.045, -0.045)
hand_pose = SubResource("Resource_vx8u2")
[node name="HighlightRing" parent="." index="4" instance=ExtResource("9_kvg40")]
+8
View File
@@ -0,0 +1,8 @@
[gd_resource type="Resource" script_class="ItemType" load_steps=2 format=3 uid="uid://bjewm2x0kyx28"]
[ext_resource type="Script" path="res://components/persistent/persistent_item_type.gd" id="1_dtjyn"]
[resource]
script = ExtResource("1_dtjyn")
type_id = "rock_type"
instance_scene = "res://game/items/rock/rock.tscn"
+44
View File
@@ -0,0 +1,44 @@
[gd_scene load_steps=8 format=3 uid="uid://d3w3e8ocyuq5l"]
[ext_resource type="Material" uid="uid://cjylinr1vdjcw" path="res://assets/prototype_materials/dark_brown.tres" id="1_hcjd5"]
[ext_resource type="Material" uid="uid://c386ygo86nqfc" path="res://assets/prototype_materials/wood_brown.tres" id="2_nd6ej"]
[ext_resource type="Material" uid="uid://b1o2xnr4gi6r4" path="res://assets/prototype_materials/sandstone.tres" id="3_751ru"]
[sub_resource type="BoxMesh" id="BoxMesh_6at8g"]
size = Vector3(0.4, 0.175, 0.2)
[sub_resource type="BoxMesh" id="BoxMesh_4x6yb"]
size = Vector3(0.415, 0.015, 0.015)
[sub_resource type="PrismMesh" id="PrismMesh_b8n6r"]
size = Vector3(0.2, 0.1, 0.035)
[sub_resource type="BoxMesh" id="BoxMesh_5ti0d"]
size = Vector3(0.3, 0.01, 0.175)
[node name="BoxedToolbox" type="Node3D"]
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.0278689, 0)
mesh = SubResource("BoxMesh_6at8g")
surface_material_override/0 = ExtResource("1_hcjd5")
[node name="MeshInstance3D2" type="MeshInstance3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.13549, 0)
mesh = SubResource("BoxMesh_4x6yb")
surface_material_override/0 = ExtResource("2_nd6ej")
[node name="MeshInstance3D3" type="MeshInstance3D" parent="."]
transform = Transform3D(-4.37114e-08, 0, -1, 0, 1, 0, 1, 0, -4.37114e-08, -0.18241, 0.110122, 0)
mesh = SubResource("PrismMesh_b8n6r")
surface_material_override/0 = ExtResource("1_hcjd5")
[node name="MeshInstance3D4" type="MeshInstance3D" parent="."]
transform = Transform3D(-4.37114e-08, 0, -1, 0, 1, 0, 1, 0, -4.37114e-08, 0.182, 0.11, 0)
mesh = SubResource("PrismMesh_b8n6r")
surface_material_override/0 = ExtResource("1_hcjd5")
[node name="MeshInstance3D5" type="MeshInstance3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.0581902, 0)
mesh = SubResource("BoxMesh_5ti0d")
surface_material_override/0 = ExtResource("3_751ru")
+94
View File
@@ -0,0 +1,94 @@
[gd_scene load_steps=16 format=3 uid="uid://c33bpwxnrb0gr"]
[ext_resource type="PackedScene" uid="uid://cc2akik80xtnb" path="res://components/persistent/persistent_item.tscn" id="1_y6luy"]
[ext_resource type="PackedScene" uid="uid://d3w3e8ocyuq5l" path="res://game/items/toolbox/boxed_toolbox.tscn" id="2_ja1ew"]
[ext_resource type="Resource" uid="uid://c61hljsd7ejeo" path="res://game/items/toolbox/toolbox_type.tres" id="2_vckid"]
[ext_resource type="PackedScene" uid="uid://c25yxb0vt53vc" path="res://addons/godot-xr-tools/objects/grab_points/grab_point_hand_left.tscn" id="3_vbs1k"]
[ext_resource type="PackedScene" uid="uid://ctw7nbntd5pcj" path="res://addons/godot-xr-tools/objects/grab_points/grab_point_hand_right.tscn" id="4_e0m8r"]
[ext_resource type="PackedScene" uid="uid://qmejywplaagw" path="res://components/persistent/persistent_pocket.tscn" id="5_52y7n"]
[ext_resource type="Animation" uid="uid://plad1r85f7ws" path="res://addons/godot-xr-tools/hands/animations/left/Grip.res" id="5_tfcf4"]
[ext_resource type="Script" path="res://addons/godot-xr-tools/hands/poses/hand_pose_settings.gd" id="6_jm161"]
[ext_resource type="PackedScene" uid="uid://da2qgxxwwitl6" path="res://addons/godot-xr-tools/objects/highlight/highlight_ring.tscn" id="6_ur4rh"]
[ext_resource type="Animation" uid="uid://ccds2u22gbxn7" path="res://addons/godot-xr-tools/hands/animations/right/Grip.res" id="8_3tlci"]
[sub_resource type="BoxShape3D" id="BoxShape3D_bt734"]
size = Vector3(0.4, 0.175, 0.2)
[sub_resource type="ConvexPolygonShape3D" id="ConvexPolygonShape3D_avjxc"]
points = PackedVector3Array(0, 0.05, 0.0175, 0.1, -0.05, 0.0175, 0, 0.05, -0.0175, -0.1, -0.05, 0.0175, 0.1, -0.05, -0.0175, -0.1, -0.05, -0.0175)
[sub_resource type="ConvexPolygonShape3D" id="ConvexPolygonShape3D_bi3ui"]
points = PackedVector3Array(0, 0.05, 0.0175, 0.1, -0.05, 0.0175, 0, 0.05, -0.0175, -0.1, -0.05, 0.0175, 0.1, -0.05, -0.0175, -0.1, -0.05, -0.0175)
[sub_resource type="Resource" id="Resource_vlsyk"]
script = ExtResource("6_jm161")
open_pose = ExtResource("5_tfcf4")
closed_pose = ExtResource("5_tfcf4")
[sub_resource type="Resource" id="Resource_1av4s"]
script = ExtResource("6_jm161")
open_pose = ExtResource("8_3tlci")
closed_pose = ExtResource("8_3tlci")
[node name="Toolbox" instance=ExtResource("1_y6luy")]
item_id = "toolbox"
item_type = ExtResource("2_vckid")
[node name="CollisionShape3D" parent="." index="0"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.028, 0)
shape = SubResource("BoxShape3D_bt734")
[node name="CollisionShape3D2" type="CollisionShape3D" parent="." index="1"]
transform = Transform3D(-4.37114e-08, 0, -1, 0, 1, 0, 1, 0, -4.37114e-08, -0.18241, 0.110122, 0)
shape = SubResource("ConvexPolygonShape3D_avjxc")
[node name="CollisionShape3D3" type="CollisionShape3D" parent="." index="2"]
transform = Transform3D(-4.37114e-08, 0, -1, 0, 1, 0, 1, 0, -4.37114e-08, 0.182, 0.11, 0)
shape = SubResource("ConvexPolygonShape3D_bi3ui")
[node name="BoxedToolbox" parent="." index="3" instance=ExtResource("2_ja1ew")]
[node name="GrabPointHandLeft" parent="." index="4" instance=ExtResource("3_vbs1k")]
transform = Transform3D(-4.37114e-08, 1, 4.37114e-08, 0, -4.37114e-08, 1, 1, 4.37114e-08, 1.91069e-15, 0.045, 0.045, 0.012)
visible = true
hand_pose = SubResource("Resource_vlsyk")
[node name="GrabPointHandRight" parent="." index="5" instance=ExtResource("4_e0m8r")]
transform = Transform3D(-4.37114e-08, -1, -4.37114e-08, 0, -4.37114e-08, 1, -1, 4.37114e-08, 1.91069e-15, -0.045, 0.045, 0.012)
visible = true
hand_pose = SubResource("Resource_1av4s")
[node name="PersistentPocket1" parent="." index="6" instance=ExtResource("5_52y7n")]
transform = Transform3D(0.3, 0, 0, 0, -1.31134e-08, -0.3, 0, 0.3, -1.31134e-08, -0.1, -0.028, 0.15)
pocket_id = "toolbox_pocket_1"
grab_distance = 0.1
snap_require = "fits_in_storage"
[node name="HighlightRing" parent="PersistentPocket1" index="2" instance=ExtResource("6_ur4rh")]
[node name="PersistentPocket2" parent="." index="7" instance=ExtResource("5_52y7n")]
transform = Transform3D(0.3, 0, 0, 0, -1.31134e-08, -0.3, 0, 0.3, -1.31134e-08, 0.1, -0.028, 0.15)
pocket_id = "toolbox_pocket_2"
grab_distance = 0.1
snap_require = "fits_in_storage"
[node name="HighlightRing" parent="PersistentPocket2" index="2" instance=ExtResource("6_ur4rh")]
[node name="PersistentPocket3" parent="." index="8" instance=ExtResource("5_52y7n")]
transform = Transform3D(0.3, 0, 0, 0, -1.31134e-08, 0.3, 0, -0.3, -1.31134e-08, -0.1, -0.028, -0.15)
pocket_id = "toolbox_pocket_3"
grab_distance = 0.1
snap_require = "fits_in_storage"
[node name="HighlightRing" parent="PersistentPocket3" index="2" instance=ExtResource("6_ur4rh")]
[node name="PersistentPocket4" parent="." index="9" instance=ExtResource("5_52y7n")]
transform = Transform3D(0.3, 0, 0, 0, -1.31134e-08, 0.3, 0, -0.3, -1.31134e-08, 0.1, -0.028, -0.15)
pocket_id = "toolbox_pocket_4"
grab_distance = 0.1
snap_require = "fits_in_storage"
[node name="HighlightRing" parent="PersistentPocket4" index="2" instance=ExtResource("6_ur4rh")]
[node name="HighlightRing" parent="." index="10" instance=ExtResource("6_ur4rh")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.135117, 0)
+8
View File
@@ -0,0 +1,8 @@
[gd_resource type="Resource" script_class="ItemType" load_steps=2 format=3 uid="uid://c61hljsd7ejeo"]
[ext_resource type="Script" path="res://components/persistent/persistent_item_type.gd" id="1_54y5y"]
[resource]
script = ExtResource("1_54y5y")
type_id = "toolbox"
instance_scene = "res://game/items/toolbox/toolbox.tscn"