Cleaner physics hitboxes, & added physics sofa

This commit is contained in:
Rob Kelly 2025-07-06 16:34:00 -06:00
parent 7493e3cd5a
commit 87c747e3d5
28 changed files with 3547 additions and 2329 deletions

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,12 @@
# Blender 4.3.2 MTL File: 'sofa_parts.blend'
# www.blender.org
newmtl Frame_Material
Ns 250.000000
Ka 1.000000 1.000000 1.000000
Kd 0.800000 0.800000 0.800000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.500000
d 1.000000
illum 2

View File

@ -0,0 +1,195 @@
# Blender 4.3.2
# www.blender.org
mtllib sofa_bottom_cushion.mtl
o BottomCushion
v 0.300727 -0.076171 -0.402174
v 0.301396 -0.031171 -0.447169
v 0.345722 -0.031171 -0.401504
v 0.300727 0.073829 -0.402174
v 0.345722 0.028829 -0.401504
v 0.301396 0.028829 -0.447169
v -0.288005 -0.031171 -0.455939
v -0.288675 -0.076171 -0.410944
v -0.333670 -0.031171 -0.411614
v -0.288675 0.073829 -0.410944
v -0.288005 0.028829 -0.455939
v -0.333670 0.028829 -0.411614
v -0.301396 -0.031171 0.443961
v -0.345722 -0.031171 0.398297
v -0.300727 -0.076171 0.398966
v -0.300727 0.073829 0.398966
v -0.345722 0.028829 0.398297
v -0.301396 0.028829 0.443961
v 0.288005 -0.031171 0.452732
v 0.288675 -0.076171 0.407737
v 0.333670 -0.031171 0.408406
v 0.288005 0.028829 0.452732
v 0.333670 0.028829 0.408406
v 0.288675 0.073829 0.407737
v 0.108329 -0.076171 -0.405097
v -0.095807 -0.076171 -0.408021
v -0.095111 -0.029414 -0.453016
v 0.109025 -0.029414 -0.450092
v 0.109025 0.032927 -0.450092
v -0.095111 0.032927 -0.453016
v -0.095807 0.079684 -0.408021
v 0.108329 0.079684 -0.405097
v -0.108329 -0.076171 0.409909
v 0.095807 -0.076171 0.412832
v 0.095111 -0.029414 0.457827
v -0.109025 -0.029414 0.454904
v -0.109025 0.032927 0.454904
v 0.095111 0.032927 0.457827
v 0.095807 0.079684 0.412832
v -0.108329 0.079684 0.409909
vn 0.9999 -0.0000 0.0149
vn 0.0152 -0.0000 -0.9999
vn 0.0264 -0.0000 0.9997
vn -0.9999 -0.0000 -0.0149
vn 0.0304 0.9995 0.0005
vn -0.0000 -1.0000 -0.0000
vn 0.5859 -0.5774 -0.5687
vn 0.5859 0.5774 -0.5687
vn -0.5687 -0.5774 -0.5859
vn -0.5687 0.5774 -0.5859
vn -0.5859 -0.5774 0.5687
vn -0.5859 0.5774 0.5687
vn 0.5687 -0.5774 0.5859
vn 0.5687 0.5774 0.5859
vn 0.0140 -0.7002 -0.7138
vn -0.0072 0.7001 -0.7140
vn 0.0157 -0.7000 0.7140
vn 0.0369 0.6994 0.7137
vn 0.7175 -0.0000 -0.6965
vn 0.7070 0.7071 0.0105
vn -0.7070 -0.7071 -0.0105
vn -0.6965 -0.0000 -0.7175
vn -0.7175 -0.0000 0.6965
vn -0.7070 0.7071 -0.0105
vn 0.7070 -0.7071 0.0105
vn 0.6965 -0.0000 0.7175
vn -0.0586 0.6994 0.7123
vn -0.0103 0.6934 0.7204
vn -0.0374 -0.7000 0.7132
vn -0.0103 -0.6934 0.7204
vn 0.0290 0.7001 -0.7134
vn 0.0103 0.6934 -0.7204
vn 0.0077 -0.7002 -0.7139
vn 0.0103 -0.6934 -0.7204
vn -0.0304 0.9995 -0.0005
vn -0.0000 1.0000 -0.0000
vn -0.0568 -0.0000 0.9984
vn -0.0143 -0.0000 0.9999
vn 0.0143 -0.0000 -0.9999
vt 0.937500 0.695312
vt 0.937500 0.546875
vt 0.953125 0.546875
vt 0.953125 0.695312
vt 0.843750 0.710938
vt 0.843750 0.726562
vt 0.804688 0.726562
vt 0.804688 0.710938
vt 0.882812 0.531250
vt 0.882812 0.515625
vt 0.921875 0.515625
vt 0.921875 0.531250
vt 0.773438 0.546875
vt 0.789062 0.546875
vt 0.789062 0.695312
vt 0.773438 0.695312
vt 0.882812 0.546875
vt 0.921875 0.546875
vt 0.921875 0.695312
vt 0.882812 0.695312
vt 0.304688 0.687500
vt 0.304688 0.539062
vt 0.343750 0.539062
vt 0.343750 0.687500
vt 0.968750 0.695312
vt 0.960938 0.710938
vt 0.929688 0.710938
vt 0.765625 0.710938
vt 0.757812 0.695312
vt 0.804688 0.695312
vt 0.796875 0.710938
vt 0.765625 0.531250
vt 0.757812 0.546875
vt 0.804688 0.546875
vt 0.796875 0.531250
vt 0.960938 0.531250
vt 0.968750 0.546875
vt 0.929688 0.531250
vt 0.843750 0.742188
vt 0.804688 0.742188
vt 0.843750 0.695312
vt 0.882812 0.500000
vt 0.921875 0.500000
vt 0.953125 0.710938
vt 0.937500 0.710938
vt 0.789062 0.710938
vt 0.773438 0.710938
vt 0.773438 0.531250
vt 0.789062 0.531250
vt 0.937500 0.531250
vt 0.953125 0.531250
vt 0.804688 0.531250
vt 0.843750 0.531250
vt 0.843750 0.546875
vt 0.804688 0.500000
vt 0.843750 0.500000
vt 0.843750 0.515625
vt 0.804688 0.515625
vt 0.921875 0.710938
vt 0.882812 0.710938
vt 0.921875 0.742188
vt 0.882812 0.742188
vt 0.882812 0.726562
vt 0.921875 0.726562
vt 0.226562 0.687500
vt 0.226562 0.539062
vt 0.265625 0.539062
vt 0.265625 0.687500
s 0
usemtl Frame_Material
f 5/1/1 23/2/1 21/3/1 3/4/1
f 30/5/2 27/6/2 7/7/2 11/8/2
f 38/9/3 35/10/3 19/11/3 22/12/3
f 14/13/4 17/14/4 12/15/4 9/16/4
f 39/17/5 24/18/5 4/19/5 32/20/5
f 34/21/6 25/22/6 1/23/6 20/24/6
f 1/25/7 2/26/7 3/4/7
f 4/19/8 5/1/8 6/27/8
f 7/28/9 8/29/9 9/16/9
f 10/30/10 11/31/10 12/15/10
f 13/32/11 14/13/11 15/33/11
f 16/34/12 17/14/12 18/35/12
f 19/36/13 20/37/13 21/3/13
f 22/38/14 23/2/14 24/18/14
f 26/39/15 8/40/15 7/7/15 27/6/15
f 30/5/16 11/8/16 10/30/16 31/41/16
f 34/42/17 20/43/17 19/11/17 35/10/17
f 38/9/18 22/12/18 24/18/18 39/17/18
f 5/1/19 3/4/19 2/44/19 6/45/19
f 23/2/20 5/1/20 4/19/20 24/18/20
f 14/13/21 9/16/21 8/29/21 15/33/21
f 9/16/22 12/15/22 11/46/22 7/47/22
f 17/14/23 14/13/23 13/48/23 18/49/23
f 12/15/24 17/14/24 16/34/24 10/30/24
f 3/4/25 21/3/25 20/37/25 1/25/25
f 21/3/26 23/2/26 22/50/26 19/51/26
f 18/52/27 37/53/27 40/54/27 16/34/27
f 37/53/28 38/9/28 39/17/28 40/54/28
f 15/55/29 33/56/29 36/57/29 13/58/29
f 33/56/30 34/42/30 35/10/30 36/57/30
f 6/59/31 29/60/31 32/20/31 4/19/31
f 29/60/32 30/5/32 31/41/32 32/20/32
f 1/61/33 25/62/33 28/63/33 2/64/33
f 25/62/34 26/39/34 27/6/34 28/63/34
f 15/65/6 8/66/6 26/67/6 33/68/6
f 33/68/6 26/67/6 25/22/6 34/21/6
f 16/34/35 40/54/35 31/41/35 10/30/35
f 40/54/36 39/17/36 32/20/36 31/41/36
f 18/52/37 13/58/37 36/57/37 37/53/37
f 37/53/38 36/57/38 35/10/38 38/9/38
f 6/59/2 2/64/2 28/63/2 29/60/2
f 29/60/39 28/63/39 27/6/39 30/5/39

View File

@ -0,0 +1,25 @@
[remap]
importer="wavefront_obj"
importer_version=1
type="Mesh"
uid="uid://bc4otwcwsiu2m"
path="res://.godot/imported/sofa_bottom_cushion.obj-53455774d3eb6d03a3ba0b141be85073.mesh"
[deps]
files=["res://.godot/imported/sofa_bottom_cushion.obj-53455774d3eb6d03a3ba0b141be85073.mesh"]
source_file="res://assets/props/sofa/sofa_bottom_cushion.obj"
dest_files=["res://.godot/imported/sofa_bottom_cushion.obj-53455774d3eb6d03a3ba0b141be85073.mesh", "res://.godot/imported/sofa_bottom_cushion.obj-53455774d3eb6d03a3ba0b141be85073.mesh"]
[params]
generate_tangents=true
generate_lods=true
generate_shadow_mesh=true
generate_lightmap_uv2=false
generate_lightmap_uv2_texel_size=0.2
scale_mesh=Vector3(1, 1, 1)
offset_mesh=Vector3(0, 0, 0)
force_disable_mesh_compression=false

View File

@ -0,0 +1,12 @@
# Blender 4.3.2 MTL File: 'sofa_parts.blend'
# www.blender.org
newmtl Frame_Material
Ns 250.000000
Ka 1.000000 1.000000 1.000000
Kd 0.800000 0.800000 0.800000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.500000
d 1.000000
illum 2

View File

@ -0,0 +1,220 @@
# Blender 4.3.2
# www.blender.org
mtllib sofa_frame.mtl
o Frame
v 1.040000 -0.500000 -0.600000
v 1.040000 -0.500000 0.600000
v -1.040000 -0.500000 -0.600000
v -1.040000 -0.500000 0.600000
v 1.040000 -0.300000 -0.300000
v -1.040000 -0.300000 -0.300000
v -1.040000 0.300000 -0.510000
v -1.040000 0.300000 -0.600000
v 1.040000 0.300000 -0.600000
v 1.040000 0.300000 -0.510000
v 1.090000 -0.350000 0.600000
v 1.040000 -0.300000 0.550000
v -1.040000 -0.300000 0.550000
v -1.090000 -0.350000 0.600000
v 1.250000 -0.500000 -0.600000
v 1.300000 -0.500000 -0.550000
v 1.300000 -0.500000 0.550000
v 1.250000 -0.500000 0.600000
v -1.250000 -0.500000 0.600000
v -1.300000 -0.500000 0.550000
v -1.300000 -0.500000 -0.550000
v -1.250000 -0.500000 -0.600000
v 1.040000 0.050000 0.550000
v 1.090000 0.050000 0.600000
v 1.090000 0.100000 0.550000
v -1.040000 0.050000 -0.600000
v -1.090000 0.100000 -0.550000
v 1.090000 0.100000 -0.550000
v 1.040000 0.050000 -0.600000
v -1.040000 0.050000 0.550000
v -1.090000 0.100000 0.550000
v -1.090000 0.050000 0.600000
v 1.300000 0.050000 0.550000
v 1.250000 0.100000 0.550000
v 1.250000 0.050000 0.600000
v -1.300000 0.050000 -0.550000
v -1.250000 0.100000 -0.550000
v -1.250000 0.050000 -0.600000
v 1.300000 0.050000 -0.550000
v 1.250000 0.050000 -0.600000
v 1.250000 0.100000 -0.550000
v -1.300000 0.050000 0.550000
v -1.250000 0.050000 0.600000
v -1.250000 0.100000 0.550000
v 1.040000 0.050000 -0.422500
v -1.040000 0.050000 -0.422500
vn -0.0000 -0.0000 1.0000
vn -0.0000 -0.0000 -1.0000
vn -0.0000 1.0000 -0.0000
vn -1.0000 -0.0000 -0.0000
vn 1.0000 -0.0000 -0.0000
vn -0.0000 -1.0000 -0.0000
vn -0.0000 0.3304 0.9439
vn -0.5774 0.5774 0.5773
vn 0.5774 0.5774 0.5773
vn 0.5774 0.5773 0.5774
vn -0.5774 0.5773 -0.5774
vn 0.5774 0.5773 -0.5774
vn -0.5774 0.5773 0.5774
vn -0.0000 0.7071 0.7071
vn -0.7071 0.7071 -0.0000
vn 0.7071 0.7071 -0.0000
vn -0.0000 0.7071 -0.7071
vn -0.7071 -0.0000 0.7071
vn 0.7071 -0.0000 -0.7071
vn 0.7071 -0.0000 0.7071
vn -0.7071 -0.0000 -0.7071
vt 0.031250 0.710938
vt 0.109375 0.742188
vt 0.000000 0.742188
vt 0.609375 0.054688
vt 0.609375 0.015625
vt 0.718750 0.015625
vt 0.718750 0.054688
vt 0.109375 0.250000
vt 0.109375 0.281250
vt 0.031250 0.281250
vt 0.617188 0.546875
vt 0.617188 0.960938
vt 0.601562 0.960938
vt 0.601562 0.546875
vt 0.609375 0.468750
vt 0.765625 0.054688
vt 0.765625 0.468750
vt 0.718750 0.468750
vt 0.664062 0.515625
vt 0.671875 0.546875
vt 0.617188 0.531250
vt 0.226562 0.210938
vt 0.226562 0.015625
vt 0.296875 0.039062
vt 0.296875 0.210938
vt 0.937500 0.054688
vt 0.937500 0.468750
vt 0.773438 0.468750
vt 0.773438 0.054688
vt 0.140625 0.226562
vt 0.140625 0.031250
vt 0.210938 0.031250
vt 0.210938 0.203125
vt 0.000000 0.234375
vt 0.000000 0.015625
vt 0.109375 0.015625
vt 0.109375 0.234375
vt 0.593750 0.007812
vt 0.601562 0.015625
vt 0.601562 0.054688
vt 0.367188 0.054688
vt 0.367188 0.015625
vt 0.375000 0.007812
vt 0.601562 0.468750
vt 0.601562 0.507812
vt 0.593750 0.515625
vt 0.375000 0.515625
vt 0.367188 0.507812
vt 0.367188 0.468750
vt 0.125000 0.710938
vt 0.343750 0.710938
vt 0.343750 0.742188
vt 0.125000 0.742188
vt 0.000000 0.289062
vt 0.000000 0.703125
vt 0.742188 0.546875
vt 0.742188 0.960938
vt 0.671875 0.960938
vt 0.125000 0.281250
vt 0.125000 0.250000
vt 0.343750 0.250000
vt 0.343750 0.281250
vt 0.000000 0.976562
vt 0.000000 0.757812
vt 0.109375 0.757812
vt 0.109375 0.976562
vt 0.117188 0.296875
vt 0.117188 0.695312
vt 0.109375 0.710938
vt 0.117188 0.234375
vt 0.351562 0.757812
vt 0.359375 0.742188
vt 0.351562 0.234375
vt 0.359375 0.250000
vt 0.117188 0.757812
vt 0.953125 0.046875
vt 0.953125 0.476562
vt 0.320312 0.296875
vt 0.125000 0.296875
vt 0.351562 0.296875
vt 0.125000 0.695312
vt 0.320312 0.695312
vt 0.351562 0.695312
vt 0.125000 0.015625
vt 0.125000 0.234375
vt 0.125000 0.757812
vt 0.125000 0.976562
vt 0.359375 0.289062
vt 0.359375 0.703125
vt 0.304688 0.226562
vt 0.226562 0.226562
vt 0.000000 0.000000
vt 0.109375 0.000000
vt 0.000000 0.250000
vt 0.140625 0.015625
vt 0.218750 0.015625
vt 0.109375 0.992188
vt 0.000000 0.992188
vt 0.664062 0.992188
vt 0.617188 0.976562
vt 0.609375 0.507812
vt 0.718750 0.507812
s 0
usemtl Frame_Material
f 14/1/1 43/2/1 19/3/1
f 3/4/2 22/5/2 38/6/2 26/7/2
f 35/8/1 24/9/1 11/10/1
f 7/11/3 10/12/3 9/13/3 8/14/3
f 1/15/2 3/4/2 26/7/2 8/16/2 9/17/2 29/18/2
f 26/19/4 46/20/4 7/11/4 8/21/4
f 23/22/4 45/23/4 5/24/4 12/25/4
f 13/26/3 12/27/3 5/28/3 6/29/3
f 46/30/5 30/31/5 13/32/5 6/33/5
f 17/34/5 16/35/5 39/36/5 33/37/5
f 21/38/6 22/39/6 3/40/6 4/41/6 19/42/6 20/43/6
f 1/44/6 15/45/6 16/46/6 17/47/6 18/48/6 2/49/6
f 31/50/3 27/51/3 37/52/3 44/53/3
f 2/54/1 11/10/1 14/1/1 4/55/1
f 6/56/7 5/57/7 45/58/7 10/12/7 7/11/7 46/20/7
f 25/59/3 34/60/3 41/61/3 28/62/3
f 21/63/4 20/64/4 42/65/4 36/66/4
f 3/40/6 1/44/6 2/49/6 4/41/6
f 23/67/8 24/9/8 25/59/8
f 30/68/9 31/50/9 32/69/9
f 33/70/10 34/60/10 35/8/10
f 36/71/11 37/52/11 38/72/11
f 39/73/12 40/74/12 41/61/12
f 42/75/13 43/2/13 44/53/13
f 12/27/14 13/26/14 14/76/14 11/77/14
f 45/78/15 23/79/15 25/59/15 28/62/15 29/80/15
f 31/50/16 30/81/16 46/82/16 26/83/16 27/51/16
f 41/84/16 34/85/16 33/37/16 39/36/16
f 44/86/15 37/87/15 36/66/15 42/65/15
f 40/74/17 29/88/17 28/62/17 41/61/17
f 24/9/14 35/8/14 34/60/14 25/59/14
f 37/52/17 27/51/17 26/89/17 38/72/17
f 31/50/14 44/53/14 43/2/14 32/69/14
f 11/90/18 24/91/18 23/22/18 12/25/18
f 39/36/19 16/35/19 15/92/19 40/93/19
f 35/8/20 18/94/20 17/34/20 33/37/20
f 13/32/20 30/31/20 32/95/20 14/96/20
f 42/65/18 20/64/18 19/3/18 43/2/18
f 38/97/21 22/98/21 21/63/21 36/66/21
f 45/58/5 29/99/5 9/100/5 10/12/5
f 15/101/2 1/15/2 29/18/2 40/102/2
f 19/3/1 4/55/1 14/1/1
f 14/1/1 32/69/1 43/2/1
f 11/10/1 2/54/1 18/94/1
f 18/94/1 35/8/1 11/10/1

View File

@ -0,0 +1,25 @@
[remap]
importer="wavefront_obj"
importer_version=1
type="Mesh"
uid="uid://vb5cxt1113xr"
path="res://.godot/imported/sofa_frame.obj-f87f60fc5f094b1938fb864d31e6949f.mesh"
[deps]
files=["res://.godot/imported/sofa_frame.obj-f87f60fc5f094b1938fb864d31e6949f.mesh"]
source_file="res://assets/props/sofa/sofa_frame.obj"
dest_files=["res://.godot/imported/sofa_frame.obj-f87f60fc5f094b1938fb864d31e6949f.mesh", "res://.godot/imported/sofa_frame.obj-f87f60fc5f094b1938fb864d31e6949f.mesh"]
[params]
generate_tangents=true
generate_lods=true
generate_shadow_mesh=true
generate_lightmap_uv2=false
generate_lightmap_uv2_texel_size=0.2
scale_mesh=Vector3(1, 1, 1)
offset_mesh=Vector3(0, 0, 0)
force_disable_mesh_compression=false

View File

@ -0,0 +1,12 @@
# Blender 4.3.2 MTL File: 'sofa_parts.blend'
# www.blender.org
newmtl Frame_Material
Ns 250.000000
Ka 1.000000 1.000000 1.000000
Kd 0.800000 0.800000 0.800000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.500000
d 1.000000
illum 2

View File

@ -0,0 +1,53 @@
# Blender 4.3.2
# www.blender.org
mtllib sofa_frame_back.mtl
o FrameBack
v 1.040000 -0.500000 -0.600000
v -1.040000 -0.500000 -0.600000
v 1.040000 -0.300000 -0.300000
v -1.040000 -0.300000 -0.300000
v -1.040000 0.300000 -0.510000
v -1.040000 0.300000 -0.600000
v 1.040000 0.300000 -0.600000
v 1.040000 0.300000 -0.510000
v -1.040000 0.050000 -0.600000
v 1.040000 0.050000 -0.600000
v 1.040000 0.050000 -0.422500
v -1.040000 0.050000 -0.422500
vn -0.0000 1.0000 -0.0000
vn -0.0000 -0.0000 -1.0000
vn -1.0000 -0.0000 -0.0000
vn 1.0000 -0.0000 -0.0000
vn -0.0000 0.3304 0.9439
vn -0.0000 -0.8321 0.5547
vt 0.617188 0.546875
vt 0.617188 0.960938
vt 0.601562 0.960938
vt 0.601562 0.546875
vt 0.609375 0.468750
vt 0.609375 0.054688
vt 0.718750 0.054688
vt 0.765625 0.054688
vt 0.765625 0.468750
vt 0.718750 0.468750
vt 0.773438 0.054688
vt 0.671875 0.960938
vt 0.773438 0.468750
vt 0.742188 0.546875
vt 0.742188 0.960938
vt 0.671875 0.546875
vt 0.601562 0.054688
s 0
usemtl Frame_Material
f 5/1/1 8/2/1 7/3/1 6/4/1
f 1/5/2 2/6/2 9/7/2 6/8/2 7/9/2 10/10/2
f 9/7/3 2/6/3 4/11/3
f 10/10/4 11/12/4 3/13/4
f 10/10/4 7/9/4 8/2/4
f 4/14/5 3/15/5 11/12/5 8/2/5 5/1/5 12/16/5
f 12/16/3 5/1/3 9/7/3
f 4/11/6 2/17/6 1/5/6 3/13/6
f 4/11/3 12/16/3 9/7/3
f 3/13/4 1/5/4 10/10/4
f 10/10/4 8/2/4 11/12/4
f 5/1/3 6/8/3 9/7/3

View File

@ -0,0 +1,25 @@
[remap]
importer="wavefront_obj"
importer_version=1
type="Mesh"
uid="uid://p5abgc2c764"
path="res://.godot/imported/sofa_frame_back.obj-daa20e12fe932de857b90d19a05f57b4.mesh"
[deps]
files=["res://.godot/imported/sofa_frame_back.obj-daa20e12fe932de857b90d19a05f57b4.mesh"]
source_file="res://assets/props/sofa/sofa_frame_back.obj"
dest_files=["res://.godot/imported/sofa_frame_back.obj-daa20e12fe932de857b90d19a05f57b4.mesh", "res://.godot/imported/sofa_frame_back.obj-daa20e12fe932de857b90d19a05f57b4.mesh"]
[params]
generate_tangents=true
generate_lods=true
generate_shadow_mesh=true
generate_lightmap_uv2=false
generate_lightmap_uv2_texel_size=0.2
scale_mesh=Vector3(1, 1, 1)
offset_mesh=Vector3(0, 0, 0)
force_disable_mesh_compression=false

View File

@ -0,0 +1,12 @@
# Blender 4.3.2 MTL File: 'sofa_parts.blend'
# www.blender.org
newmtl Frame_Material
Ns 250.000000
Ka 1.000000 1.000000 1.000000
Kd 0.800000 0.800000 0.800000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.500000
d 1.000000
illum 2

View File

@ -0,0 +1,51 @@
# Blender 4.3.2
# www.blender.org
mtllib sofa_frame_base.mtl
o FrameBase
v 1.040000 -0.500000 -0.600000
v 1.040000 -0.500000 0.600000
v -1.040000 -0.500000 -0.600000
v -1.040000 -0.500000 0.600000
v 1.040000 -0.300000 -0.300000
v -1.040000 -0.300000 -0.300000
v 1.040000 -0.350000 0.600000
v 1.040000 -0.300000 0.550000
v -1.040000 -0.300000 0.550000
v -1.040000 -0.350000 0.600000
vn -1.0000 -0.0000 -0.0000
vn -0.0000 1.0000 -0.0000
vn -0.0000 0.8321 -0.5547
vn -0.0000 -0.0000 1.0000
vn -0.0000 -1.0000 -0.0000
vn 1.0000 -0.0000 -0.0000
vn -0.0000 0.7071 0.7071
vt 0.773438 0.054688
vt 0.367188 0.054688
vt 0.937500 0.054688
vt 0.937500 0.468750
vt 0.773438 0.468750
vt 0.609375 0.054688
vt 0.609375 0.468750
vt 0.742188 0.546875
vt 0.000000 0.289062
vt 0.031250 0.281250
vt 0.031250 0.710938
vt 0.000000 0.703125
vt 0.601562 0.054688
vt 0.601562 0.468750
vt 0.367188 0.468750
vt 0.953125 0.046875
vt 0.953125 0.476562
s 0
usemtl Frame_Material
f 6/1/1 4/2/1 9/3/1
f 9/3/2 8/4/2 5/5/2 6/1/2
f 3/6/1 4/2/1 6/1/1
f 5/5/3 1/7/3 3/6/3 6/8/3
f 2/9/4 7/10/4 10/11/4 4/12/4
f 3/13/5 1/14/5 2/15/5 4/2/5
f 5/5/6 8/4/6 2/15/6
f 8/4/7 9/3/7 10/16/7 7/17/7
f 2/15/6 1/7/6 5/5/6
f 4/2/1 10/11/1 9/3/1
f 7/10/6 2/15/6 8/4/6

View File

@ -0,0 +1,25 @@
[remap]
importer="wavefront_obj"
importer_version=1
type="Mesh"
uid="uid://c4iypmwtplmbb"
path="res://.godot/imported/sofa_frame_base.obj-32658da007f3f052dbe8f2e8ff3bfdcc.mesh"
[deps]
files=["res://.godot/imported/sofa_frame_base.obj-32658da007f3f052dbe8f2e8ff3bfdcc.mesh"]
source_file="res://assets/props/sofa/sofa_frame_base.obj"
dest_files=["res://.godot/imported/sofa_frame_base.obj-32658da007f3f052dbe8f2e8ff3bfdcc.mesh", "res://.godot/imported/sofa_frame_base.obj-32658da007f3f052dbe8f2e8ff3bfdcc.mesh"]
[params]
generate_tangents=true
generate_lods=true
generate_shadow_mesh=true
generate_lightmap_uv2=false
generate_lightmap_uv2_texel_size=0.2
scale_mesh=Vector3(1, 1, 1)
offset_mesh=Vector3(0, 0, 0)
force_disable_mesh_compression=false

View File

@ -0,0 +1,12 @@
# Blender 4.3.2 MTL File: 'sofa_parts.blend'
# www.blender.org
newmtl Frame_Material
Ns 250.000000
Ka 1.000000 1.000000 1.000000
Kd 0.800000 0.800000 0.800000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.500000
d 1.000000
illum 2

View File

@ -0,0 +1,81 @@
# Blender 4.3.2
# www.blender.org
mtllib sofa_frame_middle.mtl
o FrameMiddle
v 1.040000 -0.500000 -0.600000
v 1.040000 -0.500000 0.600000
v -1.040000 -0.500000 -0.600000
v -1.040000 -0.500000 0.600000
v 1.040000 -0.300000 -0.300000
v -1.040000 -0.300000 -0.300000
v -1.040000 0.300000 -0.510000
v -1.040000 0.300000 -0.600000
v 1.040000 0.300000 -0.600000
v 1.040000 0.300000 -0.510000
v 1.040000 -0.350000 0.600000
v 1.040000 -0.300000 0.550000
v -1.040000 -0.300000 0.550000
v -1.040000 -0.350000 0.600000
v -1.040000 0.050000 -0.600000
v 1.040000 0.050000 -0.600000
v 1.040000 0.050000 -0.422500
v -1.040000 0.050000 -0.422500
vn -1.0000 -0.0000 -0.0000
vn -0.0000 1.0000 -0.0000
vn -0.0000 -0.0000 -1.0000
vn 1.0000 -0.0000 -0.0000
vn -0.0000 -0.0000 1.0000
vn -0.0000 0.3304 0.9439
vn -0.0000 -1.0000 -0.0000
vn -0.0000 0.7071 0.7071
vt 0.773438 0.054688
vt 0.367188 0.054688
vt 0.937500 0.054688
vt 0.617188 0.546875
vt 0.617188 0.960938
vt 0.601562 0.960938
vt 0.601562 0.546875
vt 0.609375 0.468750
vt 0.609375 0.054688
vt 0.718750 0.054688
vt 0.765625 0.054688
vt 0.765625 0.468750
vt 0.718750 0.468750
vt 0.937500 0.468750
vt 0.773438 0.468750
vt 0.671875 0.960938
vt 0.000000 0.289062
vt 0.031250 0.281250
vt 0.031250 0.710938
vt 0.000000 0.703125
vt 0.742188 0.546875
vt 0.742188 0.960938
vt 0.671875 0.546875
vt 0.601562 0.054688
vt 0.601562 0.468750
vt 0.367188 0.468750
vt 0.953125 0.046875
vt 0.953125 0.476562
s 0
usemtl Frame_Material
f 6/1/1 4/2/1 13/3/1
f 7/4/2 10/5/2 9/6/2 8/7/2
f 1/8/3 3/9/3 15/10/3 8/11/3 9/12/3 16/13/3
f 15/10/1 3/9/1 6/1/1
f 13/3/2 12/14/2 5/15/2 6/1/2
f 3/9/1 4/2/1 6/1/1
f 16/13/4 17/16/4 5/15/4
f 16/13/4 9/12/4 10/5/4
f 2/17/5 11/18/5 14/19/5 4/20/5
f 6/21/6 5/22/6 17/16/6 10/5/6 7/4/6 18/23/6
f 3/24/7 1/25/7 2/26/7 4/2/7
f 18/23/1 7/4/1 15/10/1
f 5/15/4 12/14/4 2/26/4
f 12/14/8 13/3/8 14/27/8 11/28/8
f 2/26/4 1/8/4 5/15/4
f 4/2/1 14/19/1 13/3/1
f 11/18/4 2/26/4 12/14/4
f 6/1/1 18/23/1 15/10/1
f 5/15/4 1/8/4 16/13/4
f 16/13/4 10/5/4 17/16/4
f 7/4/1 8/11/1 15/10/1

View File

@ -0,0 +1,25 @@
[remap]
importer="wavefront_obj"
importer_version=1
type="Mesh"
uid="uid://dpvf0k6w8dvvk"
path="res://.godot/imported/sofa_frame_middle.obj-ff4d918d56fe72b8485db34fce12a392.mesh"
[deps]
files=["res://.godot/imported/sofa_frame_middle.obj-ff4d918d56fe72b8485db34fce12a392.mesh"]
source_file="res://assets/props/sofa/sofa_frame_middle.obj"
dest_files=["res://.godot/imported/sofa_frame_middle.obj-ff4d918d56fe72b8485db34fce12a392.mesh", "res://.godot/imported/sofa_frame_middle.obj-ff4d918d56fe72b8485db34fce12a392.mesh"]
[params]
generate_tangents=true
generate_lods=true
generate_shadow_mesh=true
generate_lightmap_uv2=false
generate_lightmap_uv2_texel_size=0.2
scale_mesh=Vector3(1, 1, 1)
offset_mesh=Vector3(0, 0, 0)
force_disable_mesh_compression=false

View File

@ -0,0 +1,12 @@
# Blender 4.3.2 MTL File: 'sofa_parts.blend'
# www.blender.org
newmtl Frame_Material
Ns 250.000000
Ka 1.000000 1.000000 1.000000
Kd 0.800000 0.800000 0.800000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.500000
d 1.000000
illum 2

View File

@ -0,0 +1,134 @@
# Blender 4.3.2
# www.blender.org
mtllib sofa_top_cushion.mtl
o TopCushion
v 0.294733 -0.216543 0.119762
v 0.294733 -0.246275 0.034815
v 0.339733 -0.231409 0.077289
v 0.294733 -0.273882 0.092154
v -0.294733 -0.216543 0.119762
v -0.294733 -0.246275 0.034815
v -0.294733 -0.273882 0.092155
v -0.339733 -0.231409 0.077289
v -0.294733 0.270939 -0.098533
v -0.294733 0.243331 -0.041193
v -0.294733 0.213599 -0.126141
v -0.339733 0.228465 -0.083667
v 0.294733 0.243331 -0.041194
v 0.339733 0.228465 -0.083667
v 0.294733 0.213599 -0.126141
v 0.294733 0.270939 -0.098533
v 0.098244 0.220468 -0.125977
v -0.098244 0.220468 -0.125977
v -0.098244 0.250200 -0.036001
v 0.098244 0.250200 -0.036002
v 0.098244 -0.273882 0.105239
v -0.098244 -0.273882 0.105239
v -0.098244 -0.246275 0.044506
v 0.098244 -0.246275 0.044506
v 0.098244 -0.216543 0.134481
v -0.098244 -0.216543 0.134481
v -0.098244 0.277807 -0.096735
v 0.098244 0.277807 -0.096735
vn -0.0295 -0.3366 -0.9412
vn 0.0535 0.3363 0.9402
vn 0.5774 -0.3542 0.7357
vn 0.5773 -0.7357 -0.3542
vn -0.5773 -0.3542 0.7357
vn -0.5774 -0.7357 -0.3542
vn -0.5774 0.7357 0.3542
vn -0.5774 0.3542 -0.7357
vn 0.5774 0.7357 0.3542
vn 0.5774 0.3542 -0.7357
vn 0.7071 -0.2336 -0.6674
vn 0.0111 0.4441 -0.8959
vn 0.0392 0.9051 0.4233
vn 0.0245 -0.9056 -0.4235
vn -0.0633 -0.4433 0.8942
vn -0.7071 0.2336 0.6674
vn -0.7071 -0.2336 -0.6674
vn 0.7071 0.2336 0.6674
vn 0.0633 -0.4433 0.8942
vn -0.0000 -0.4543 0.8908
vn -0.0245 -0.9056 -0.4235
vn -0.0000 -0.9104 -0.4138
vn -0.0392 0.9051 0.4233
vn -0.0000 0.9104 0.4138
vn -0.0111 0.4441 -0.8959
vn -0.0000 0.4543 -0.8908
vn -0.0535 0.3363 0.9402
vn -0.0000 0.3431 0.9393
vn 0.0295 -0.3366 -0.9412
vn -0.0000 -0.3431 -0.9393
vt 0.343750 0.859375
vt 0.304688 0.859375
vt 0.304688 0.765625
vt 0.343750 0.765625
vt 0.343750 0.882812
vt 0.343750 0.976562
vt 0.304688 0.976562
vt 0.304688 0.882812
vt 0.296875 0.976562
vt 0.304688 0.984375
vt 0.289062 0.976562
vt 0.296875 0.984375
vt 0.421875 0.984375
vt 0.421875 0.976562
vt 0.429688 0.976562
vt 0.437500 0.976562
vt 0.429688 0.984375
vt 0.421875 0.875000
vt 0.429688 0.882812
vt 0.421875 0.882812
vt 0.437500 0.882812
vt 0.429688 0.875000
vt 0.304688 0.875000
vt 0.296875 0.882812
vt 0.289062 0.882812
vt 0.296875 0.875000
vt 0.343750 0.875000
vt 0.382812 0.984375
vt 0.421875 1.000000
vt 0.382812 1.000000
vt 0.382812 0.976562
vt 0.343750 0.984375
vt 0.343750 1.000000
vt 0.304688 1.000000
vt 0.382812 0.882812
vt 0.382812 0.875000
vt 0.382812 0.859375
vt 0.421875 0.859375
vt 0.382812 0.765625
vt 0.421875 0.765625
s 0
usemtl Frame_Material
f 17/1/1 15/2/1 2/3/1 24/4/1
f 20/5/2 25/6/2 1/7/2 13/8/2
f 3/9/3 1/7/3 4/10/3
f 2/11/4 3/9/4 4/12/4
f 7/13/5 5/14/5 8/15/5
f 6/16/6 7/17/6 8/15/6
f 9/18/7 12/19/7 10/20/7
f 11/21/8 12/19/8 9/22/8
f 16/23/9 13/8/9 14/24/9
f 14/24/10 15/25/10 16/26/10
f 14/24/11 3/9/11 2/11/11 15/25/11
f 28/27/12 16/23/12 15/2/12 17/1/12
f 20/5/13 13/8/13 16/23/13 28/27/13
f 22/28/14 7/13/14 6/29/14 23/30/14
f 26/31/15 5/14/15 7/13/15 22/28/15
f 12/19/16 8/15/16 5/14/16 10/20/16
f 8/15/17 12/19/17 11/21/17 6/16/17
f 3/9/18 14/24/18 13/8/18 1/7/18
f 1/7/19 25/6/19 21/32/19 4/10/19
f 25/6/20 26/31/20 22/28/20 21/32/20
f 4/10/21 21/32/21 24/33/21 2/34/21
f 21/32/22 22/28/22 23/30/22 24/33/22
f 10/20/23 19/35/23 27/36/23 9/18/23
f 19/35/24 20/5/24 28/27/24 27/36/24
f 9/18/25 27/36/25 18/37/25 11/38/25
f 27/36/26 28/27/26 17/1/26 18/37/26
f 10/20/27 5/14/27 26/31/27 19/35/27
f 19/35/28 26/31/28 25/6/28 20/5/28
f 11/38/29 18/37/29 23/39/29 6/40/29
f 18/37/30 17/1/30 24/4/30 23/39/30

View File

@ -0,0 +1,25 @@
[remap]
importer="wavefront_obj"
importer_version=1
type="Mesh"
uid="uid://drr1wn0wmt5bi"
path="res://.godot/imported/sofa_top_cushion.obj-4653d502e73ad4501fb84791db9575a5.mesh"
[deps]
files=["res://.godot/imported/sofa_top_cushion.obj-4653d502e73ad4501fb84791db9575a5.mesh"]
source_file="res://assets/props/sofa/sofa_top_cushion.obj"
dest_files=["res://.godot/imported/sofa_top_cushion.obj-4653d502e73ad4501fb84791db9575a5.mesh", "res://.godot/imported/sofa_top_cushion.obj-4653d502e73ad4501fb84791db9575a5.mesh"]
[params]
generate_tangents=true
generate_lods=true
generate_shadow_mesh=true
generate_lightmap_uv2=false
generate_lightmap_uv2_texel_size=0.2
scale_mesh=Vector3(1, 1, 1)
offset_mesh=Vector3(0, 0, 0)
force_disable_mesh_compression=false

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,4 +1,4 @@
[gd_scene load_steps=43 format=3 uid="uid://dc4tts6342cuj"]
[gd_scene load_steps=44 format=3 uid="uid://dc4tts6342cuj"]
[ext_resource type="Script" uid="uid://dmbdkydqnbyqv" path="res://levels/prop_test/prop_test.gd" id="1_ibd1t"]
[ext_resource type="PackedScene" uid="uid://bwe2jdmvinhqd" path="res://src/player/player.tscn" id="1_ml0ka"]
@ -7,7 +7,7 @@
[ext_resource type="Environment" uid="uid://iqhvx1couqcf" path="res://levels/prop_test/debug_environment.tres" id="3_mvw32"]
[ext_resource type="PackedScene" uid="uid://cubwniraol1qn" path="res://src/props/bulkhead/bulkhead.tscn" id="4_g7cgy"]
[ext_resource type="PackedScene" uid="uid://b6eg8t04rkh0c" path="res://src/props/wall_switch/wall_switch.tscn" id="5_y13lv"]
[ext_resource type="PackedScene" uid="uid://cvx5u0ttmri4q" path="res://src/props/sofa/sofa.tscn" id="6_kccq3"]
[ext_resource type="PackedScene" uid="uid://cvx5u0ttmri4q" path="res://src/props/sofa/static_sofa.tscn" id="6_kccq3"]
[ext_resource type="PackedScene" uid="uid://ca7b5gjl3ri0p" path="res://src/props/cafe_table/cafe_table.tscn" id="6_tm4v6"]
[ext_resource type="PackedScene" uid="uid://cppd3scvxf3eg" path="res://src/props/crate_long/static_crate_long.tscn" id="7_4jlf1"]
[ext_resource type="PackedScene" uid="uid://bpsiwx1517pk1" path="res://src/props/tarp_crate/tarp_crate.tscn" id="7_xlkhi"]
@ -24,6 +24,7 @@
[ext_resource type="PackedScene" uid="uid://ctm84yms40858" path="res://src/props/railing/railing.tscn" id="16_kccq3"]
[ext_resource type="PackedScene" uid="uid://ctr56p23cvupu" path="res://src/props/retinal_scanner/retinal_scanner.tscn" id="17_r8upy"]
[ext_resource type="PackedScene" uid="uid://cjqayfrj2oxyr" path="res://src/props/tarp_crate/tarp_crate_logo.tscn" id="20_pfhf5"]
[ext_resource type="PackedScene" uid="uid://c55n6h3ydi32e" path="res://src/props/sofa/phys_sofa.tscn" id="21_4q7ty"]
[ext_resource type="PackedScene" uid="uid://cklppdtyaadlo" path="res://src/props/trash_can/static_trash_can.tscn" id="21_wgtci"]
[ext_resource type="PackedScene" uid="uid://dtus42gmb1kqq" path="res://src/props/vending_machine/vending_machine.tscn" id="22_6oadn"]
[ext_resource type="Texture2D" uid="uid://d2xq0uvxh2ojk" path="res://assets/props/vending_machine/vending_machine_C.png" id="23_ibd1t"]
@ -226,6 +227,9 @@ skeleton = NodePath("../..")
[node name="RetinalScanner" parent="Props" instance=ExtResource("17_r8upy")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 30, 1.3, -12)
[node name="PhysSofa" parent="Props" instance=ExtResource("21_4q7ty")]
transform = Transform3D(-0.984808, 0, -0.173648, 0, 1, 0, 0.173648, 0, -0.984808, 33, 0.5, -8.4)
[node name="Sofa" parent="Props" instance=ExtResource("6_kccq3")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 33, 0.5, -12)
skeleton = NodePath("../SwitchPodium")

View File

@ -1,4 +1,4 @@
[gd_scene load_steps=13 format=3 uid="uid://drm5dspi48pf5"]
[gd_scene load_steps=12 format=3 uid="uid://drm5dspi48pf5"]
[ext_resource type="Script" uid="uid://sksndhqyo2bn" path="res://src/props/physics/persistent_prop.gd" id="1_q4djj"]
[ext_resource type="ArrayMesh" uid="uid://cd7vwjss7qytk" path="res://assets/props/crate_long/crate_long.obj" id="1_sao54"]
@ -10,9 +10,6 @@
[ext_resource type="Material" uid="uid://c1vy4bkwb1g5m" path="res://assets/materials/gunk_lowrez.material" id="7_rlyiq"]
[ext_resource type="Script" uid="uid://040xta01xqxd" path="res://src/props/physics/holdable.gd" id="8_p8srg"]
[sub_resource type="BoxShape3D" id="BoxShape3D_p8srg"]
size = Vector3(0.75, 0.5, 1.5)
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_8j27j"]
albedo_texture = ExtResource("2_rlyiq")
metallic = 1.0
@ -23,8 +20,8 @@ normal_texture = ExtResource("4_q4djj")
ao_enabled = true
texture_filter = 2
[sub_resource type="ConcavePolygonShape3D" id="ConcavePolygonShape3D_p8srg"]
data = PackedVector3Array(0.375, -0.15, 0.75, 0.275, -0.25, 0.75, 0.375, 0.15, 0.75, 0.375, 0.15, 0.75, 0.275, -0.25, 0.75, 0.275, 0.25, 0.75, 0.275, 0.25, 0.75, 0.275, -0.25, 0.75, -0.275, 0.25, 0.75, -0.275, 0.25, 0.75, 0.275, -0.25, 0.75, -0.375, 0.15, 0.75, -0.375, 0.15, 0.75, 0.275, -0.25, 0.75, -0.375, -0.15, 0.75, -0.375, -0.15, 0.75, 0.275, -0.25, 0.75, -0.275, -0.25, 0.75, 0.375, 0.15, -0.75, 0.375, -0.15, -0.75, 0.375, 0.15, 0.75, 0.375, 0.15, 0.75, 0.375, -0.15, -0.75, 0.375, -0.15, 0.75, -0.275, 0.25, -0.75, 0.275, 0.25, -0.75, -0.275, 0.25, 0.75, -0.275, 0.25, 0.75, 0.275, 0.25, -0.75, 0.275, 0.25, 0.75, -0.375, 0.15, 0.75, -0.375, -0.15, 0.75, -0.375, 0.15, -0.75, -0.375, 0.15, -0.75, -0.375, -0.15, 0.75, -0.375, -0.15, -0.75, -0.375, -0.15, -0.75, -0.275, -0.25, -0.75, -0.375, 0.15, -0.75, -0.375, 0.15, -0.75, -0.275, -0.25, -0.75, -0.275, 0.25, -0.75, -0.275, 0.25, -0.75, -0.275, -0.25, -0.75, 0.275, 0.25, -0.75, 0.275, 0.25, -0.75, -0.275, -0.25, -0.75, 0.375, 0.15, -0.75, 0.375, 0.15, -0.75, -0.275, -0.25, -0.75, 0.375, -0.15, -0.75, 0.375, -0.15, -0.75, -0.275, -0.25, -0.75, 0.275, -0.25, -0.75, -0.275, -0.25, 0.75, -0.275, -0.25, -0.75, -0.375, -0.15, 0.75, -0.375, -0.15, 0.75, -0.275, -0.25, -0.75, -0.375, -0.15, -0.75, -0.275, 0.25, -0.75, -0.275, 0.25, 0.75, -0.375, 0.15, -0.75, -0.375, 0.15, -0.75, -0.275, 0.25, 0.75, -0.375, 0.15, 0.75, 0.275, -0.25, -0.75, 0.275, -0.25, 0.75, 0.375, -0.15, -0.75, 0.375, -0.15, -0.75, 0.275, -0.25, 0.75, 0.375, -0.15, 0.75, 0.275, 0.25, 0.75, 0.275, 0.25, -0.75, 0.375, 0.15, 0.75, 0.375, 0.15, 0.75, 0.275, 0.25, -0.75, 0.375, 0.15, -0.75, 0.275, -0.25, -0.75, -0.275, -0.25, -0.75, 0.275, -0.25, 0.75, 0.275, -0.25, 0.75, -0.275, -0.25, -0.75, -0.275, -0.25, 0.75)
[sub_resource type="ConvexPolygonShape3D" id="ConvexPolygonShape3D_q4djj"]
points = PackedVector3Array(0.375, 0.149961, 0.75, 0.375, -0.15001, 0.75, 0.375, 0.149961, -0.75, 0.274936, 0.25, 0.75, 0.274936, -0.25, 0.75, 0.375, -0.15001, -0.75, 0.274936, 0.25, -0.75, -0.275083, 0.25, 0.75, -0.275083, -0.25, 0.75, 0.274936, -0.25, -0.75, -0.275083, 0.25, -0.75, -0.375, 0.149961, 0.75, -0.375, -0.15001, 0.75, -0.275083, -0.25, -0.75, -0.375, 0.149961, -0.75, -0.375, -0.15001, -0.75)
[node name="PhysCrateLong" type="RigidBody3D" groups=["Persistent", "PlasticMaterial"]]
collision_layer = 67
@ -32,24 +29,17 @@ collision_mask = 73
mass = 200.0
script = ExtResource("1_q4djj")
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
shape = SubResource("BoxShape3D_p8srg")
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
mesh = ExtResource("1_sao54")
surface_material_override/0 = SubResource("StandardMaterial3D_8j27j")
[node name="StaticBody3D" type="StaticBody3D" parent="MeshInstance3D"]
collision_layer = 4
collision_mask = 0
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
shape = SubResource("ConvexPolygonShape3D_q4djj")
[node name="CollisionShape3D" type="CollisionShape3D" parent="MeshInstance3D/StaticBody3D"]
shape = SubResource("ConcavePolygonShape3D_p8srg")
[node name="Gunkable" parent="MeshInstance3D/StaticBody3D" node_paths=PackedStringArray("body", "mesh_instance") instance=ExtResource("6_064yj")]
[node name="Gunkable" parent="." node_paths=PackedStringArray("body", "mesh_instance") instance=ExtResource("6_064yj")]
mask_dim = 128
body = NodePath("..")
mesh_instance = NodePath("../..")
mesh_instance = NodePath("../MeshInstance3D")
source_gunk_material = ExtResource("7_rlyiq")
[node name="Holdable" type="Node" parent="."]

View File

@ -1,4 +1,4 @@
[gd_scene load_steps=13 format=3 uid="uid://cv6sxj04rrkt2"]
[gd_scene load_steps=14 format=3 uid="uid://cv6sxj04rrkt2"]
[ext_resource type="Script" uid="uid://sksndhqyo2bn" path="res://src/props/physics/persistent_prop.gd" id="1_3jm8i"]
[ext_resource type="PackedScene" uid="uid://cdi5sl60mw1po" path="res://src/world/gunkable/gunkable.tscn" id="1_fu1y0"]
@ -10,8 +10,11 @@
[ext_resource type="Texture2D" uid="uid://bcnsofhrfxyjk" path="res://assets/props/med_cart/med_cart_R.png" id="7_2wjh0"]
[ext_resource type="Script" uid="uid://040xta01xqxd" path="res://src/props/physics/holdable.gd" id="8_8v7ae"]
[sub_resource type="BoxShape3D" id="BoxShape3D_fu1y0"]
size = Vector3(0.7, 1, 1.2)
[sub_resource type="BoxShape3D" id="BoxShape3D_3jm8i"]
size = Vector3(0.7, 0.06, 1.2)
[sub_resource type="BoxShape3D" id="BoxShape3D_r1b3g"]
size = Vector3(0.7, 1, 0.06)
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_xx4to"]
transparency = 2
@ -34,14 +37,28 @@ collision_mask = 73
mass = 40.0
script = ExtResource("1_3jm8i")
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
shape = SubResource("BoxShape3D_fu1y0")
[node name="CollisionShape3D2" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.2, 0)
shape = SubResource("BoxShape3D_3jm8i")
[node name="CollisionShape3D3" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.3, 0)
shape = SubResource("BoxShape3D_3jm8i")
[node name="CollisionShape3D4" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0.56)
shape = SubResource("BoxShape3D_r1b3g")
[node name="CollisionShape3D5" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -0.56)
shape = SubResource("BoxShape3D_r1b3g")
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
mesh = ExtResource("3_3jm8i")
surface_material_override/0 = SubResource("StandardMaterial3D_xx4to")
[node name="StaticBody3D" type="StaticBody3D" parent="MeshInstance3D"]
visible = false
collision_layer = 4
collision_mask = 0

View File

@ -0,0 +1,237 @@
[gd_scene load_steps=19 format=3 uid="uid://c55n6h3ydi32e"]
[ext_resource type="ArrayMesh" uid="uid://vb5cxt1113xr" path="res://assets/props/sofa/sofa_frame.obj" id="2_txvha"]
[ext_resource type="Texture2D" uid="uid://c7wa2igxm2vta" path="res://assets/props/sofa/sofa_C.png" id="3_twcgi"]
[ext_resource type="Texture2D" uid="uid://bdutuchsgsudg" path="res://assets/props/sofa/sofa_M.png" id="4_pr1sr"]
[ext_resource type="Texture2D" uid="uid://c0fmlt2f7h0l7" path="res://assets/props/sofa/sofa_N.png" id="5_p1o88"]
[ext_resource type="Texture2D" uid="uid://bgedr6qe65yve" path="res://assets/props/sofa/sofa_R.png" id="6_xa6g3"]
[ext_resource type="PackedScene" uid="uid://cdi5sl60mw1po" path="res://src/world/gunkable/gunkable.tscn" id="7_twcgi"]
[ext_resource type="Material" uid="uid://cqjr3cbxtfg2j" path="res://assets/materials/gunk.material" id="8_pr1sr"]
[ext_resource type="ArrayMesh" uid="uid://bc4otwcwsiu2m" path="res://assets/props/sofa/sofa_bottom_cushion.obj" id="9_p1o88"]
[ext_resource type="Script" uid="uid://040xta01xqxd" path="res://src/props/physics/holdable.gd" id="10_xa6g3"]
[ext_resource type="ArrayMesh" uid="uid://drr1wn0wmt5bi" path="res://assets/props/sofa/sofa_top_cushion.obj" id="11_yib26"]
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_yib26"]
albedo_texture = ExtResource("3_twcgi")
metallic = 1.0
metallic_texture = ExtResource("4_pr1sr")
roughness_texture = ExtResource("6_xa6g3")
normal_enabled = true
normal_texture = ExtResource("5_p1o88")
texture_filter = 2
[sub_resource type="ConcavePolygonShape3D" id="ConcavePolygonShape3D_txvha"]
data = PackedVector3Array(-1.25, 0.05, 0.6, -1.09, -0.35, 0.6, -1.25, -0.5, 0.6, -1.09, 0.05, 0.6, -1.09, -0.35, 0.6, -1.25, 0.05, 0.6, -1.04, -0.5, 0.6, -1.25, -0.5, 0.6, -1.09, -0.35, 0.6, -1.09, -0.35, 0.6, 1.04, -0.5, 0.6, -1.04, -0.5, 0.6, 1.09, -0.35, 0.6, 1.04, -0.5, 0.6, -1.09, -0.35, 0.6, 1.04, -0.5, 0.6, 1.09, -0.35, 0.6, 1.25, -0.5, 0.6, 1.25, 0.05, 0.6, 1.25, -0.5, 0.6, 1.09, -0.35, 0.6, 1.09, 0.05, 0.6, 1.25, 0.05, 0.6, 1.09, -0.35, 0.6, -1.25, -0.5, -0.6, -1.04, -0.5, -0.6, -1.25, 0.05, -0.6, -1.25, 0.05, -0.6, -1.04, -0.5, -0.6, -1.04, 0.05, -0.6, -1.04, -0.5, -0.6, 1.04, -0.5, -0.6, -1.04, 0.05, -0.6, -1.04, 0.05, -0.6, 1.04, -0.5, -0.6, -1.04, 0.3, -0.6, -1.04, 0.3, -0.6, 1.04, -0.5, -0.6, 1.04, 0.3, -0.6, 1.04, 0.3, -0.6, 1.04, -0.5, -0.6, 1.04, 0.05, -0.6, 1.04, -0.5, -0.6, 1.25, -0.5, -0.6, 1.04, 0.05, -0.6, 1.04, 0.05, -0.6, 1.25, -0.5, -0.6, 1.25, 0.05, -0.6, 1.04, 0.3, -0.51, -1.04, 0.3, -0.51, 1.04, 0.3, -0.6, 1.04, 0.3, -0.6, -1.04, 0.3, -0.51, -1.04, 0.3, -0.6, -1.04, 0.05, -0.4225, -1.04, 0.05, -0.6, -1.04, 0.3, -0.51, -1.04, 0.3, -0.51, -1.04, 0.05, -0.6, -1.04, 0.3, -0.6, 1.04, 0.05, -0.4225, 1.04, 0.05, 0.55, 1.04, -0.3, -0.3, 1.04, -0.3, -0.3, 1.04, 0.05, 0.55, 1.04, -0.3, 0.55, 1.04, -0.3, 0.55, -1.04, -0.3, 0.55, 1.04, -0.3, -0.3, 1.04, -0.3, -0.3, -1.04, -0.3, 0.55, -1.04, -0.3, -0.3, -1.04, 0.05, 0.55, -1.04, 0.05, -0.4225, -1.04, -0.3, 0.55, -1.04, -0.3, 0.55, -1.04, 0.05, -0.4225, -1.04, -0.3, -0.3, 1.3, -0.5, -0.55, 1.3, -0.5, 0.55, 1.3, 0.05, -0.55, 1.3, 0.05, -0.55, 1.3, -0.5, 0.55, 1.3, 0.05, 0.55, -1.25, -0.5, -0.6, -1.3, -0.5, -0.55, -1.04, -0.5, -0.6, -1.25, -0.5, 0.6, -1.3, -0.5, -0.55, -1.3, -0.5, 0.55, -1.04, -0.5, 0.6, -1.3, -0.5, -0.55, -1.25, -0.5, 0.6, -1.04, -0.5, -0.6, -1.3, -0.5, -0.55, -1.04, -0.5, 0.6, 1.04, -0.5, 0.6, -1.04, -0.5, -0.6, -1.04, -0.5, 0.6, 1.04, -0.5, -0.6, -1.04, -0.5, -0.6, 1.04, -0.5, 0.6, 1.25, -0.5, 0.6, 1.04, -0.5, -0.6, 1.04, -0.5, 0.6, 1.3, -0.5, 0.55, 1.04, -0.5, -0.6, 1.25, -0.5, 0.6, 1.3, -0.5, -0.55, 1.04, -0.5, -0.6, 1.3, -0.5, 0.55, 1.25, -0.5, -0.6, 1.04, -0.5, -0.6, 1.3, -0.5, -0.55, -1.09, 0.1, -0.55, -1.09, 0.1, 0.55, -1.25, 0.1, -0.55, -1.25, 0.1, -0.55, -1.09, 0.1, 0.55, -1.25, 0.1, 0.55, 1.04, -0.3, -0.3, -1.04, -0.3, -0.3, 1.04, 0.05, -0.4225, 1.04, 0.05, -0.4225, -1.04, -0.3, -0.3, 1.04, 0.3, -0.51, 1.04, 0.3, -0.51, -1.04, -0.3, -0.3, -1.04, 0.3, -0.51, -1.04, 0.3, -0.51, -1.04, -0.3, -0.3, -1.04, 0.05, -0.4225, 1.25, 0.1, 0.55, 1.09, 0.1, 0.55, 1.25, 0.1, -0.55, 1.25, 0.1, -0.55, 1.09, 0.1, 0.55, 1.09, 0.1, -0.55, -1.3, -0.5, 0.55, -1.3, -0.5, -0.55, -1.3, 0.05, 0.55, -1.3, 0.05, 0.55, -1.3, -0.5, -0.55, -1.3, 0.05, -0.55, 1.09, 0.05, 0.6, 1.04, 0.05, 0.55, 1.09, 0.1, 0.55, -1.09, 0.1, 0.55, -1.04, 0.05, 0.55, -1.09, 0.05, 0.6, 1.25, 0.1, 0.55, 1.3, 0.05, 0.55, 1.25, 0.05, 0.6, -1.25, 0.1, -0.55, -1.3, 0.05, -0.55, -1.25, 0.05, -0.6, 1.25, 0.05, -0.6, 1.3, 0.05, -0.55, 1.25, 0.1, -0.55, -1.25, 0.05, 0.6, -1.3, 0.05, 0.55, -1.25, 0.1, 0.55, -1.04, -0.3, 0.55, 1.04, -0.3, 0.55, -1.09, -0.35, 0.6, -1.09, -0.35, 0.6, 1.04, -0.3, 0.55, 1.09, -0.35, 0.6, 1.04, 0.05, 0.55, 1.04, 0.05, -0.4225, 1.09, 0.1, 0.55, 1.09, 0.1, 0.55, 1.04, 0.05, -0.4225, 1.09, 0.1, -0.55, 1.09, 0.1, -0.55, 1.04, 0.05, -0.4225, 1.04, 0.05, -0.6, -1.04, 0.05, 0.55, -1.09, 0.1, 0.55, -1.04, 0.05, -0.4225, -1.04, 0.05, -0.4225, -1.09, 0.1, 0.55, -1.04, 0.05, -0.6, -1.04, 0.05, -0.6, -1.09, 0.1, 0.55, -1.09, 0.1, -0.55, 1.25, 0.1, 0.55, 1.25, 0.1, -0.55, 1.3, 0.05, 0.55, 1.3, 0.05, 0.55, 1.25, 0.1, -0.55, 1.3, 0.05, -0.55, -1.25, 0.1, -0.55, -1.25, 0.1, 0.55, -1.3, 0.05, -0.55, -1.3, 0.05, -0.55, -1.25, 0.1, 0.55, -1.3, 0.05, 0.55, 1.04, 0.05, -0.6, 1.25, 0.05, -0.6, 1.09, 0.1, -0.55, 1.09, 0.1, -0.55, 1.25, 0.05, -0.6, 1.25, 0.1, -0.55, 1.25, 0.05, 0.6, 1.09, 0.05, 0.6, 1.25, 0.1, 0.55, 1.25, 0.1, 0.55, 1.09, 0.05, 0.6, 1.09, 0.1, 0.55, -1.09, 0.1, -0.55, -1.25, 0.1, -0.55, -1.04, 0.05, -0.6, -1.04, 0.05, -0.6, -1.25, 0.1, -0.55, -1.25, 0.05, -0.6, -1.25, 0.1, 0.55, -1.09, 0.1, 0.55, -1.25, 0.05, 0.6, -1.25, 0.05, 0.6, -1.09, 0.1, 0.55, -1.09, 0.05, 0.6, 1.09, 0.05, 0.6, 1.09, -0.35, 0.6, 1.04, 0.05, 0.55, 1.04, 0.05, 0.55, 1.09, -0.35, 0.6, 1.04, -0.3, 0.55, 1.3, -0.5, -0.55, 1.3, 0.05, -0.55, 1.25, -0.5, -0.6, 1.25, -0.5, -0.6, 1.3, 0.05, -0.55, 1.25, 0.05, -0.6, 1.25, -0.5, 0.6, 1.25, 0.05, 0.6, 1.3, -0.5, 0.55, 1.3, -0.5, 0.55, 1.25, 0.05, 0.6, 1.3, 0.05, 0.55, -1.04, 0.05, 0.55, -1.04, -0.3, 0.55, -1.09, 0.05, 0.6, -1.09, 0.05, 0.6, -1.04, -0.3, 0.55, -1.09, -0.35, 0.6, -1.3, -0.5, 0.55, -1.3, 0.05, 0.55, -1.25, -0.5, 0.6, -1.25, -0.5, 0.6, -1.3, 0.05, 0.55, -1.25, 0.05, 0.6, -1.25, -0.5, -0.6, -1.25, 0.05, -0.6, -1.3, -0.5, -0.55, -1.3, -0.5, -0.55, -1.25, 0.05, -0.6, -1.3, 0.05, -0.55, 1.04, 0.05, -0.6, 1.04, 0.05, -0.4225, 1.04, 0.3, -0.6, 1.04, 0.3, -0.6, 1.04, 0.05, -0.4225, 1.04, 0.3, -0.51)
[sub_resource type="BoxShape3D" id="BoxShape3D_twcgi"]
size = Vector3(0.26, 0.6, 1.2)
[sub_resource type="ConvexPolygonShape3D" id="ConvexPolygonShape3D_pr1sr"]
points = PackedVector3Array(-1.04, -0.5, -0.6, -1.04, -0.30002, -0.3, 1.04, -0.5, -0.6, -1.04, -0.5, 0.6, -1.04, -0.30002, 0.549961, 1.04, -0.30002, -0.3, 1.04, -0.5, 0.6, -1.04, -0.35, 0.6, 1.04, -0.30002, 0.549961, 1.04, -0.35, 0.6)
[sub_resource type="ConvexPolygonShape3D" id="ConvexPolygonShape3D_p1o88"]
points = PackedVector3Array(1.04, 0.3, -0.510024, 1.04, 0.3, -0.6, -1.04, 0.3, -0.510024, 1.04, -0.300078, -0.3, 1.04, -0.5, -0.6, -1.04, 0.3, -0.6, -1.04, -0.300078, -0.3, -1.04, -0.5, -0.6)
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_xa6g3"]
albedo_texture = ExtResource("3_twcgi")
metallic = 1.0
metallic_texture = ExtResource("4_pr1sr")
roughness_texture = ExtResource("6_xa6g3")
normal_enabled = true
normal_texture = ExtResource("5_p1o88")
texture_filter = 2
[sub_resource type="ConvexPolygonShape3D" id="ConvexPolygonShape3D_yib26"]
points = PackedVector3Array(0.345722, 0.0288206, -0.401557, 0.300713, 0.0738257, -0.402183, 0.288666, 0.0738257, 0.407649, 0.333607, 0.0288206, 0.408364, 0.345722, -0.0311811, -0.401557, 0.301322, 0.0288206, -0.447263, 0.108292, 0.0796687, -0.405134, 0.0957707, 0.0796687, 0.412747, 0.287989, 0.0288206, 0.452639, 0.333607, -0.0311811, 0.408364, 0.288666, -0.076171, 0.407649, 0.300713, -0.076171, -0.402183, 0.301322, -0.0311811, -0.447263, 0.108969, 0.0329245, -0.450125, -0.0958384, 0.0796687, -0.408086, -0.10836, 0.0796687, 0.409885, 0.0950938, 0.0329245, 0.457827, 0.287989, -0.0311811, 0.452639, 0.0957707, -0.076171, 0.412747, 0.108292, -0.076171, -0.405134, -0.288057, -0.0311811, -0.455939, 0.108969, -0.0294267, -0.450125, -0.288057, 0.0288206, -0.455939, -0.0951615, 0.0329245, -0.453077, -0.288733, 0.0738257, -0.410948, -0.300781, 0.0738257, 0.398883, -0.301458, 0.0288206, 0.443874, -0.109036, 0.0329245, 0.454875, 0.0950938, -0.0294267, 0.457827, -0.10836, -0.076171, 0.409885, -0.288733, -0.076171, -0.410948, -0.333675, -0.0311811, -0.411664, -0.333675, 0.0288206, -0.411664, -0.345722, 0.0288206, 0.398257, -0.301458, -0.0311811, 0.443874, -0.109036, -0.0294267, 0.454875, -0.300781, -0.076171, 0.398883, -0.345722, -0.0311811, 0.398257)
[sub_resource type="ConvexPolygonShape3D" id="ConvexPolygonShape3D_s5bq7"]
points = PackedVector3Array(0.0982352, 0.277807, -0.0967521, 0.0982352, 0.220456, -0.125988, -0.0983018, 0.277807, -0.0967521, 0.0982352, 0.250158, -0.0360101, 0.294706, 0.270895, -0.0985379, 0.294706, 0.213544, -0.126141, -0.0983018, 0.220456, -0.125988, -0.0983018, 0.250158, -0.0360101, -0.294772, 0.270895, -0.0985379, 0.0982352, -0.216585, 0.134455, 0.294706, 0.243299, -0.0412143, 0.339733, 0.228449, -0.0836904, 0.294706, -0.246287, 0.0348089, -0.294772, 0.213544, -0.126141, -0.294772, 0.243299, -0.0412143, -0.0983018, -0.216585, 0.134455, -0.339733, 0.228449, -0.0836904, 0.0982352, -0.273882, 0.10522, 0.294706, -0.273882, 0.0921325, 0.294706, -0.216585, 0.119736, 0.339733, -0.231436, 0.077285, -0.294772, -0.246287, 0.0348089, -0.339733, -0.231436, 0.077285, -0.294772, -0.216585, 0.119736, -0.0983018, -0.273882, 0.10522, -0.294772, -0.273882, 0.0921325)
[node name="PhysSofa" type="Node3D"]
[node name="SofaFrame" type="RigidBody3D" parent="."]
collision_layer = 98
collision_mask = 73
mass = 500.0
sleeping = true
[node name="MeshInstance3D" type="MeshInstance3D" parent="SofaFrame"]
mesh = ExtResource("2_txvha")
surface_material_override/0 = SubResource("StandardMaterial3D_yib26")
[node name="StaticBody3D" type="StaticBody3D" parent="SofaFrame/MeshInstance3D"]
collision_layer = 4
collision_mask = 0
[node name="CollisionShape3D" type="CollisionShape3D" parent="SofaFrame/MeshInstance3D/StaticBody3D"]
shape = SubResource("ConcavePolygonShape3D_txvha")
[node name="Gunkable" parent="SofaFrame/MeshInstance3D/StaticBody3D" node_paths=PackedStringArray("body", "mesh_instance") instance=ExtResource("7_twcgi")]
mask_dim = 196
body = NodePath("..")
mesh_instance = NodePath("../..")
source_gunk_material = ExtResource("8_pr1sr")
[node name="ArmLCollision" type="CollisionShape3D" parent="SofaFrame"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.17, -0.2, 0)
shape = SubResource("BoxShape3D_twcgi")
[node name="ArmRCollision" type="CollisionShape3D" parent="SofaFrame"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.17, -0.2, 0)
shape = SubResource("BoxShape3D_twcgi")
[node name="BaseCollision" type="CollisionShape3D" parent="SofaFrame"]
shape = SubResource("ConvexPolygonShape3D_pr1sr")
[node name="BackCollision" type="CollisionShape3D" parent="SofaFrame"]
shape = SubResource("ConvexPolygonShape3D_p1o88")
[node name="BottomCushion" type="RigidBody3D" parent="."]
transform = Transform3D(0.999999, 0, -0.00153589, 0, 1, 0, 0.00153589, 0, 0.999999, 0, -0.224, 0.153)
collision_layer = 70
collision_mask = 73
mass = 30.0
sleeping = true
[node name="MeshInstance3D" type="MeshInstance3D" parent="BottomCushion"]
mesh = ExtResource("9_p1o88")
surface_material_override/0 = SubResource("StandardMaterial3D_xa6g3")
[node name="CollisionShape3D" type="CollisionShape3D" parent="BottomCushion"]
shape = SubResource("ConvexPolygonShape3D_yib26")
[node name="Gunkable" parent="BottomCushion" node_paths=PackedStringArray("body", "mesh_instance") instance=ExtResource("7_twcgi")]
mask_dim = 196
body = NodePath("..")
mesh_instance = NodePath("../MeshInstance3D")
source_gunk_material = ExtResource("8_pr1sr")
[node name="Holdable" type="Node" parent="BottomCushion"]
script = ExtResource("10_xa6g3")
hold_distance = 1.2
metadata/_custom_type_script = "uid://040xta01xqxd"
[node name="BottomCushion3" type="RigidBody3D" parent="."]
transform = Transform3D(0.999822, 0.00228604, -0.0187437, -0.00228638, 0.999997, 3.51163e-06, 0.0187437, 3.93442e-05, 0.999824, 0.688976, -0.224, 0.17095)
collision_layer = 70
collision_mask = 73
mass = 30.0
sleeping = true
[node name="MeshInstance3D" type="MeshInstance3D" parent="BottomCushion3"]
mesh = ExtResource("9_p1o88")
surface_material_override/0 = SubResource("StandardMaterial3D_xa6g3")
[node name="CollisionShape3D" type="CollisionShape3D" parent="BottomCushion3"]
shape = SubResource("ConvexPolygonShape3D_yib26")
[node name="Gunkable" parent="BottomCushion3" node_paths=PackedStringArray("body", "mesh_instance") instance=ExtResource("7_twcgi")]
mask_dim = 196
body = NodePath("..")
mesh_instance = NodePath("../MeshInstance3D")
source_gunk_material = ExtResource("8_pr1sr")
[node name="Holdable" type="Node" parent="BottomCushion3"]
script = ExtResource("10_xa6g3")
hold_distance = 1.2
metadata/_custom_type_script = "uid://040xta01xqxd"
[node name="BottomCushion2" type="RigidBody3D" parent="."]
transform = Transform3D(0.999913, 0, 0.0131594, 0, 1, 0, -0.0131594, 0, 0.999913, -0.690142, -0.223657, 0.154269)
collision_layer = 70
collision_mask = 73
mass = 30.0
sleeping = true
[node name="MeshInstance3D" type="MeshInstance3D" parent="BottomCushion2"]
mesh = ExtResource("9_p1o88")
surface_material_override/0 = SubResource("StandardMaterial3D_xa6g3")
[node name="CollisionShape3D" type="CollisionShape3D" parent="BottomCushion2"]
shape = SubResource("ConvexPolygonShape3D_yib26")
[node name="Gunkable" parent="BottomCushion2" node_paths=PackedStringArray("body", "mesh_instance") instance=ExtResource("7_twcgi")]
mask_dim = 196
body = NodePath("..")
mesh_instance = NodePath("../MeshInstance3D")
source_gunk_material = ExtResource("8_pr1sr")
[node name="Holdable" type="Node" parent="BottomCushion2"]
script = ExtResource("10_xa6g3")
hold_distance = 1.2
metadata/_custom_type_script = "uid://040xta01xqxd"
[node name="TopCushion" type="RigidBody3D" parent="."]
transform = Transform3D(0.999895, 0.0133165, 0.00570669, -0.0133163, 0.999911, -7.59997e-05, -0.0057072, -7.27493e-12, 0.999984, -0.689198, 0.077623, -0.380305)
collision_layer = 70
collision_mask = 73
mass = 30.0
sleeping = true
[node name="MeshInstance3D" type="MeshInstance3D" parent="TopCushion"]
mesh = ExtResource("11_yib26")
surface_material_override/0 = SubResource("StandardMaterial3D_xa6g3")
[node name="CollisionShape3D" type="CollisionShape3D" parent="TopCushion"]
shape = SubResource("ConvexPolygonShape3D_s5bq7")
[node name="Gunkable" parent="TopCushion" node_paths=PackedStringArray("body", "mesh_instance") instance=ExtResource("7_twcgi")]
mask_dim = 196
body = NodePath("..")
mesh_instance = NodePath("../MeshInstance3D")
source_gunk_material = ExtResource("8_pr1sr")
[node name="Holdable" type="Node" parent="TopCushion"]
script = ExtResource("10_xa6g3")
hold_distance = 1.2
metadata/_custom_type_script = "uid://040xta01xqxd"
[node name="TopCushion2" type="RigidBody3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.000443935, 0.0780895, -0.380305)
collision_layer = 70
collision_mask = 73
mass = 30.0
sleeping = true
[node name="MeshInstance3D" type="MeshInstance3D" parent="TopCushion2"]
mesh = ExtResource("11_yib26")
surface_material_override/0 = SubResource("StandardMaterial3D_xa6g3")
[node name="CollisionShape3D" type="CollisionShape3D" parent="TopCushion2"]
shape = SubResource("ConvexPolygonShape3D_s5bq7")
[node name="Gunkable" parent="TopCushion2" node_paths=PackedStringArray("body", "mesh_instance") instance=ExtResource("7_twcgi")]
mask_dim = 196
body = NodePath("..")
mesh_instance = NodePath("../MeshInstance3D")
source_gunk_material = ExtResource("8_pr1sr")
[node name="Holdable" type="Node" parent="TopCushion2"]
script = ExtResource("10_xa6g3")
hold_distance = 1.2
metadata/_custom_type_script = "uid://040xta01xqxd"
[node name="TopCushion3" type="RigidBody3D" parent="."]
transform = Transform3D(0.999759, -0.00898652, -0.0200525, 0.00898832, 0.99996, 0, 0.0200517, -0.000180238, 0.999799, 0.691321, 0.0831664, -0.380305)
collision_layer = 70
collision_mask = 73
mass = 30.0
sleeping = true
[node name="MeshInstance3D" type="MeshInstance3D" parent="TopCushion3"]
mesh = ExtResource("11_yib26")
surface_material_override/0 = SubResource("StandardMaterial3D_xa6g3")
[node name="CollisionShape3D" type="CollisionShape3D" parent="TopCushion3"]
shape = SubResource("ConvexPolygonShape3D_s5bq7")
[node name="Gunkable" parent="TopCushion3" node_paths=PackedStringArray("body", "mesh_instance") instance=ExtResource("7_twcgi")]
mask_dim = 196
body = NodePath("..")
mesh_instance = NodePath("../MeshInstance3D")
source_gunk_material = ExtResource("8_pr1sr")
[node name="Holdable" type="Node" parent="TopCushion3"]
script = ExtResource("10_xa6g3")
hold_distance = 1.2
metadata/_custom_type_script = "uid://040xta01xqxd"

File diff suppressed because one or more lines are too long

View File

@ -10,8 +10,8 @@
[ext_resource type="Material" uid="uid://c1vy4bkwb1g5m" path="res://assets/materials/gunk_lowrez.material" id="7_7amwm"]
[ext_resource type="Script" uid="uid://040xta01xqxd" path="res://src/props/physics/holdable.gd" id="9_kxk5h"]
[sub_resource type="BoxShape3D" id="BoxShape3D_kxk5h"]
size = Vector3(0.305, 1, 0.739)
[sub_resource type="ConvexPolygonShape3D" id="ConvexPolygonShape3D_kxk5h"]
points = PackedVector3Array(-0.4, -0.5, -7.83205e-05, -0.28285, -0.5, -0.28285, -0.28285, -0.5, 0.282772, -0.4, 0.399961, -7.83205e-05, -7.83205e-05, -0.5, -0.4, -0.28285, 0.399961, -0.28285, -7.83205e-05, -0.5, 0.4, -0.28285, 0.399961, 0.282772, -0.350196, 0.5, -7.83205e-05, 0.282772, -0.5, -0.28285, -7.83205e-05, 0.399961, -0.4, -0.247612, 0.5, -0.247612, -7.83205e-05, 0.5, -0.350196, 0.282772, -0.5, 0.282772, -7.83205e-05, 0.399961, 0.4, -0.247612, 0.5, 0.247533, 0.4, -0.5, -7.83205e-05, 0.282772, 0.399961, -0.28285, 0.247533, 0.5, -0.247612, 0.282772, 0.399961, 0.282772, 0.247533, 0.5, 0.247533, -7.83205e-05, 0.5, 0.350039, 0.4, 0.399961, -7.83205e-05, 0.350039, 0.5, -7.83205e-05)
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_2hi74"]
albedo_texture = ExtResource("2_g7pab")
@ -32,20 +32,7 @@ mass = 40.0
script = ExtResource("1_g7pab")
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
transform = Transform3D(0.92388, 0, 0.382683, 0, 1, 0, -0.382683, 0, 0.92388, 0, 0, 0)
shape = SubResource("BoxShape3D_kxk5h")
[node name="CollisionShape3D2" type="CollisionShape3D" parent="."]
transform = Transform3D(0.382683, 0, 0.92388, 0, 1, 0, -0.92388, 0, 0.382683, 0, 0, 0)
shape = SubResource("BoxShape3D_kxk5h")
[node name="CollisionShape3D3" type="CollisionShape3D" parent="."]
transform = Transform3D(-0.382683, 0, 0.92388, 0, 1, 0, -0.92388, 0, -0.382683, 0, 0, 0)
shape = SubResource("BoxShape3D_kxk5h")
[node name="CollisionShape3D4" type="CollisionShape3D" parent="."]
transform = Transform3D(-0.923879, 0, 0.382683, 0, 1, 0, -0.382683, 0, -0.923879, 0, 0, 0)
shape = SubResource("BoxShape3D_kxk5h")
shape = SubResource("ConvexPolygonShape3D_kxk5h")
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
mesh = ExtResource("1_2hi74")