Move Hob and Counter into scenes
This commit is contained in:
@@ -0,0 +1,33 @@
|
|||||||
|
[gd_scene format=3 uid="uid://efaec6ymgabo"]
|
||||||
|
|
||||||
|
[ext_resource type="Script" uid="uid://cquqe4f1m1sw6" path="res://addons/godot-xr-tools/objects/snap_zone.gd" id="1_dlkho"]
|
||||||
|
|
||||||
|
[sub_resource type="BoxShape3D" id="BoxShape3D_24d3s"]
|
||||||
|
|
||||||
|
[sub_resource type="BoxMesh" id="BoxMesh_i5j2u"]
|
||||||
|
|
||||||
|
[sub_resource type="SphereShape3D" id="SphereShape3D_vlqg6"]
|
||||||
|
|
||||||
|
[node name="Counter" type="StaticBody3D" unique_id=1487893288]
|
||||||
|
|
||||||
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="." unique_id=692568688]
|
||||||
|
shape = SubResource("BoxShape3D_24d3s")
|
||||||
|
|
||||||
|
[node name="MeshInstance3D" type="MeshInstance3D" parent="CollisionShape3D" unique_id=127773521]
|
||||||
|
mesh = SubResource("BoxMesh_i5j2u")
|
||||||
|
|
||||||
|
[node name="Label3D" type="Label3D" parent="CollisionShape3D" unique_id=149978729]
|
||||||
|
transform = Transform3D(0.9999992, 0, 0, 0, 0.99999946, 0, 0, 0, 0.9999992, 0.002797456, 0.6309581, -0.2812457)
|
||||||
|
text = "Counter"
|
||||||
|
|
||||||
|
[node name="XRToolsSnapZone" type="Area3D" parent="." unique_id=186065581]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5270121, 0)
|
||||||
|
collision_layer = 0
|
||||||
|
collision_mask = 65536
|
||||||
|
script = ExtResource("1_dlkho")
|
||||||
|
snap_mode = 1
|
||||||
|
metadata/_custom_type_script = "uid://cquqe4f1m1sw6"
|
||||||
|
|
||||||
|
[node name="CollisionShape3D2" type="CollisionShape3D" parent="XRToolsSnapZone" unique_id=1196349092]
|
||||||
|
transform = Transform3D(0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, 0, -0.000975132, 0)
|
||||||
|
shape = SubResource("SphereShape3D_vlqg6")
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
[gd_scene format=3 uid="uid://j7caslh27nor"]
|
||||||
|
|
||||||
|
[ext_resource type="Script" uid="uid://bsn8vhv5adxdo" path="res://hob.gd" id="1_7jc4g"]
|
||||||
|
[ext_resource type="Script" uid="uid://cquqe4f1m1sw6" path="res://addons/godot-xr-tools/objects/snap_zone.gd" id="2_er1dp"]
|
||||||
|
|
||||||
|
[sub_resource type="BoxShape3D" id="BoxShape3D_24d3s"]
|
||||||
|
|
||||||
|
[sub_resource type="BoxMesh" id="BoxMesh_i5j2u"]
|
||||||
|
|
||||||
|
[sub_resource type="SphereShape3D" id="SphereShape3D_vlqg6"]
|
||||||
|
|
||||||
|
[node name="Hob" type="StaticBody3D" unique_id=1687971542]
|
||||||
|
script = ExtResource("1_7jc4g")
|
||||||
|
|
||||||
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="." unique_id=1283846023]
|
||||||
|
shape = SubResource("BoxShape3D_24d3s")
|
||||||
|
|
||||||
|
[node name="MeshInstance3D" type="MeshInstance3D" parent="CollisionShape3D" unique_id=1454284058]
|
||||||
|
mesh = SubResource("BoxMesh_i5j2u")
|
||||||
|
|
||||||
|
[node name="Label3D" type="Label3D" parent="CollisionShape3D" unique_id=757148654]
|
||||||
|
transform = Transform3D(0.9999992, 0, 0, 0, 0.99999946, 0, 0, 0, 0.9999992, 0.002797456, 0.6309581, -0.2812457)
|
||||||
|
text = "Hob"
|
||||||
|
|
||||||
|
[node name="XRToolsSnapZone" type="Area3D" parent="." unique_id=538157739]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5270121, 0)
|
||||||
|
collision_layer = 65536
|
||||||
|
collision_mask = 65536
|
||||||
|
script = ExtResource("2_er1dp")
|
||||||
|
snap_mode = 1
|
||||||
|
metadata/_custom_type_script = "uid://cquqe4f1m1sw6"
|
||||||
|
|
||||||
|
[node name="CollisionShape3D2" type="CollisionShape3D" parent="XRToolsSnapZone" unique_id=370920392]
|
||||||
|
transform = Transform3D(0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, 0, -0.000975132, 0)
|
||||||
|
shape = SubResource("SphereShape3D_vlqg6")
|
||||||
@@ -2,9 +2,9 @@
|
|||||||
|
|
||||||
[ext_resource type="Script" uid="uid://b4ldkd3ngs0vp" path="res://main.gd" id="1_0xm2m"]
|
[ext_resource type="Script" uid="uid://b4ldkd3ngs0vp" path="res://main.gd" id="1_0xm2m"]
|
||||||
[ext_resource type="PackedScene" uid="uid://j5s5wus7tuhb" path="res://XROrigin.tscn" id="2_h2yge"]
|
[ext_resource type="PackedScene" uid="uid://j5s5wus7tuhb" path="res://XROrigin.tscn" id="2_h2yge"]
|
||||||
[ext_resource type="Script" uid="uid://cquqe4f1m1sw6" path="res://addons/godot-xr-tools/objects/snap_zone.gd" id="3_1bvp3"]
|
|
||||||
[ext_resource type="PackedScene" uid="uid://e4i6o5oriecx" path="res://PickupCube.tscn" id="3_h2yge"]
|
[ext_resource type="PackedScene" uid="uid://e4i6o5oriecx" path="res://PickupCube.tscn" id="3_h2yge"]
|
||||||
[ext_resource type="Script" uid="uid://bsn8vhv5adxdo" path="res://hob.gd" id="3_lquwl"]
|
[ext_resource type="PackedScene" uid="uid://j7caslh27nor" path="res://Hob.tscn" id="3_lquwl"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://efaec6ymgabo" path="res://Counter.tscn" id="4_7mycd"]
|
||||||
|
|
||||||
[sub_resource type="BoxShape3D" id="BoxShape3D_vlqg6"]
|
[sub_resource type="BoxShape3D" id="BoxShape3D_vlqg6"]
|
||||||
size = Vector3(5, 0.1, 5)
|
size = Vector3(5, 0.1, 5)
|
||||||
@@ -12,12 +12,6 @@ size = Vector3(5, 0.1, 5)
|
|||||||
[sub_resource type="BoxMesh" id="BoxMesh_24d3s"]
|
[sub_resource type="BoxMesh" id="BoxMesh_24d3s"]
|
||||||
size = Vector3(5, 0.1, 5)
|
size = Vector3(5, 0.1, 5)
|
||||||
|
|
||||||
[sub_resource type="BoxShape3D" id="BoxShape3D_24d3s"]
|
|
||||||
|
|
||||||
[sub_resource type="BoxMesh" id="BoxMesh_i5j2u"]
|
|
||||||
|
|
||||||
[sub_resource type="SphereShape3D" id="SphereShape3D_vlqg6"]
|
|
||||||
|
|
||||||
[node name="Main" type="Node3D" unique_id=1312265607]
|
[node name="Main" type="Node3D" unique_id=1312265607]
|
||||||
script = ExtResource("1_0xm2m")
|
script = ExtResource("1_0xm2m")
|
||||||
|
|
||||||
@@ -35,61 +29,14 @@ shape = SubResource("BoxShape3D_vlqg6")
|
|||||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="Floor/CollisionShape3D" unique_id=1939997056]
|
[node name="MeshInstance3D" type="MeshInstance3D" parent="Floor/CollisionShape3D" unique_id=1939997056]
|
||||||
mesh = SubResource("BoxMesh_24d3s")
|
mesh = SubResource("BoxMesh_24d3s")
|
||||||
|
|
||||||
[node name="Hob" type="StaticBody3D" parent="." unique_id=799977363]
|
[node name="Hob" parent="." unique_id=1687971542 instance=ExtResource("3_lquwl")]
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.29336345, 0.5, -1.484)
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.29336345, 0.8981018, -1.484)
|
||||||
script = ExtResource("3_lquwl")
|
|
||||||
|
|
||||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="Hob" unique_id=709939046]
|
[node name="Counter" parent="." unique_id=1487893288 instance=ExtResource("4_7mycd")]
|
||||||
shape = SubResource("BoxShape3D_24d3s")
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.7321187, 0.8981018, -1.484)
|
||||||
|
|
||||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="Hob/CollisionShape3D" unique_id=764879781]
|
|
||||||
mesh = SubResource("BoxMesh_i5j2u")
|
|
||||||
|
|
||||||
[node name="Label3D" type="Label3D" parent="Hob/CollisionShape3D" unique_id=1357581958]
|
|
||||||
transform = Transform3D(0.9999992, 0, 0, 0, 0.99999946, 0, 0, 0, 0.9999992, 0.002797456, 0.6309581, -0.2812457)
|
|
||||||
text = "Hob"
|
|
||||||
|
|
||||||
[node name="XRToolsSnapZone" type="Area3D" parent="Hob" unique_id=282181673]
|
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5270121, 0)
|
|
||||||
collision_layer = 65536
|
|
||||||
collision_mask = 65536
|
|
||||||
script = ExtResource("3_1bvp3")
|
|
||||||
snap_mode = 1
|
|
||||||
initial_object = NodePath("../../PickableObject2")
|
|
||||||
metadata/_custom_type_script = "uid://cquqe4f1m1sw6"
|
|
||||||
|
|
||||||
[node name="CollisionShape3D2" type="CollisionShape3D" parent="Hob/XRToolsSnapZone" unique_id=808936665]
|
|
||||||
transform = Transform3D(0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, 0, -0.000975132, 0)
|
|
||||||
shape = SubResource("SphereShape3D_vlqg6")
|
|
||||||
|
|
||||||
[node name="Counter" type="StaticBody3D" parent="." unique_id=1606773951]
|
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.7321187, 0.5, -1.484)
|
|
||||||
|
|
||||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="Counter" unique_id=1488758675]
|
|
||||||
shape = SubResource("BoxShape3D_24d3s")
|
|
||||||
|
|
||||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="Counter/CollisionShape3D" unique_id=1356208894]
|
|
||||||
mesh = SubResource("BoxMesh_i5j2u")
|
|
||||||
|
|
||||||
[node name="Label3D" type="Label3D" parent="Counter/CollisionShape3D" unique_id=1406314269]
|
|
||||||
transform = Transform3D(0.9999992, 0, 0, 0, 0.99999946, 0, 0, 0, 0.9999992, 0.002797456, 0.6309581, -0.2812457)
|
|
||||||
text = "Counter"
|
|
||||||
|
|
||||||
[node name="XRToolsSnapZone" type="Area3D" parent="Counter" unique_id=1197324324]
|
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5270121, 0)
|
|
||||||
collision_layer = 0
|
|
||||||
collision_mask = 65537
|
|
||||||
script = ExtResource("3_1bvp3")
|
|
||||||
snap_mode = 1
|
|
||||||
initial_object = NodePath("../../PickableObject")
|
|
||||||
metadata/_custom_type_script = "uid://cquqe4f1m1sw6"
|
|
||||||
|
|
||||||
[node name="CollisionShape3D2" type="CollisionShape3D" parent="Counter/XRToolsSnapZone" unique_id=1304830059]
|
|
||||||
transform = Transform3D(0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, 0, -0.000975132, 0)
|
|
||||||
shape = SubResource("SphereShape3D_vlqg6")
|
|
||||||
|
|
||||||
[node name="PickableObject" parent="." unique_id=1675596942 instance=ExtResource("3_h2yge")]
|
[node name="PickableObject" parent="." unique_id=1675596942 instance=ExtResource("3_h2yge")]
|
||||||
transform = Transform3D(1, 0, -2.2351742e-08, -2.9802322e-08, 1.0000001, 0, -2.6077032e-08, 1.4901161e-08, 1, -0.70505303, 1.1780516, -1.4470987)
|
transform = Transform3D(1, 0, -2.2351742e-08, -2.9802322e-08, 1.0000001, 0, -2.6077032e-08, 1.4901161e-08, 1, -0.70505303, 1.5761534, -1.0317149)
|
||||||
|
|
||||||
[node name="PickableObject2" parent="." unique_id=713087634 instance=ExtResource("3_h2yge")]
|
[node name="PickableObject2" parent="." unique_id=713087634 instance=ExtResource("3_h2yge")]
|
||||||
transform = Transform3D(1, 0, -2.2351742e-08, -2.9802322e-08, 1.0000001, 0, -2.6077032e-08, 1.4901161e-08, 1, 0.28315204, 1.1626935, -1.4811357)
|
transform = Transform3D(1, 0, -2.2351742e-08, -2.9802322e-08, 1.0000001, 0, -2.6077032e-08, 1.4901161e-08, 1, 0.28315204, 1.5607953, -1.0657519)
|
||||||
|
|||||||
Reference in New Issue
Block a user