fixed more model stuff
This commit is contained in:
File diff suppressed because it is too large
Load Diff
12
assets/models/froggy.mtl
Normal file
12
assets/models/froggy.mtl
Normal file
@@ -0,0 +1,12 @@
|
||||
# Blender 3.6.8 MTL File: 'froggy.blend'
|
||||
# www.blender.org
|
||||
|
||||
newmtl Texture
|
||||
Ns 250.000000
|
||||
Ka 1.000000 1.000000 1.000000
|
||||
Ks 0.500000 0.500000 0.500000
|
||||
Ke 0.000000 0.000000 0.000000
|
||||
Ni 1.450000
|
||||
illum 2
|
||||
map_Kd D:/byte-of-terror/assets/textures/material/froggy_texture.png
|
||||
map_d D:/byte-of-terror/assets/textures/material/froggy_texture.png
|
74312
assets/models/froggy.obj
Normal file
74312
assets/models/froggy.obj
Normal file
File diff suppressed because it is too large
Load Diff
22
assets/models/froggy.obj.import
Normal file
22
assets/models/froggy.obj.import
Normal file
@@ -0,0 +1,22 @@
|
||||
[remap]
|
||||
|
||||
importer="wavefront_obj"
|
||||
importer_version=1
|
||||
type="Mesh"
|
||||
uid="uid://b3l6pyb38w4p2"
|
||||
path="res://.godot/imported/froggy.obj-68b41e3db576f13c37df43e35bf9566b.mesh"
|
||||
|
||||
[deps]
|
||||
|
||||
files=["res://.godot/imported/froggy.obj-68b41e3db576f13c37df43e35bf9566b.mesh"]
|
||||
|
||||
source_file="res://assets/models/froggy.obj"
|
||||
dest_files=["res://.godot/imported/froggy.obj-68b41e3db576f13c37df43e35bf9566b.mesh", "res://.godot/imported/froggy.obj-68b41e3db576f13c37df43e35bf9566b.mesh"]
|
||||
|
||||
[params]
|
||||
|
||||
generate_tangents=true
|
||||
scale_mesh=Vector3(1, 1, 1)
|
||||
offset_mesh=Vector3(0, 0, 0)
|
||||
optimize_mesh=true
|
||||
force_disable_mesh_compression=false
|
@@ -15,18 +15,18 @@ v 5.574968 -2.998415 -6.594638
|
||||
v 5.077186 -2.998554 -6.594800
|
||||
v -4.794697 -2.999786 -6.598023
|
||||
vn -0.0001 1.0000 0.0001
|
||||
vt 0.790189 0.197891
|
||||
vt 0.817937 0.197891
|
||||
vt 0.817843 0.564118
|
||||
vt 0.817749 0.930402
|
||||
vt 0.789971 0.930411
|
||||
vt 0.239086 0.930590
|
||||
vt 0.209607 0.930600
|
||||
vt 0.182045 0.930609
|
||||
vt 0.182045 0.564261
|
||||
vt 0.182045 0.197891
|
||||
vt 0.209657 0.197891
|
||||
vt 0.239145 0.197891
|
||||
vt 0.786556 0.136391
|
||||
vt 0.813956 0.136391
|
||||
vt 0.813863 0.499869
|
||||
vt 0.813770 0.863405
|
||||
vt 0.786340 0.863413
|
||||
vt 0.242369 0.863591
|
||||
vt 0.213260 0.863600
|
||||
vt 0.186044 0.863609
|
||||
vt 0.186045 0.500011
|
||||
vt 0.186044 0.136391
|
||||
vt 0.213310 0.136391
|
||||
vt 0.242428 0.136391
|
||||
s 0
|
||||
usemtl Ground1
|
||||
f 5/1/1 2/2/1 9/3/1 10/4/1 11/5/1 12/6/1 8/7/1 7/8/1 6/9/1 1/10/1 3/11/1 4/12/1
|
||||
@@ -49,19 +49,19 @@ v -8.000000 -3.000000 0.000000
|
||||
v -7.995381 2.998268 0.000000
|
||||
v 7.997691 -2.999134 0.002598
|
||||
v 7.997691 2.999134 0.002598
|
||||
v 2.268600 -2.985230 8.999024
|
||||
v 2.268600 -2.998648 8.999024
|
||||
v 5.994310 2.999783 8.999349
|
||||
v 5.991711 -2.999243 0.002272
|
||||
v -5.992863 2.998485 8.995455
|
||||
v -5.997192 -2.999892 0.000325
|
||||
v -5.399998 -3.000000 0.000001
|
||||
v -5.400000 3.000000 0.000000
|
||||
v -1.661109 -2.985230 8.999166
|
||||
v -1.661109 -2.998648 8.999166
|
||||
v -5.388224 -2.999859 0.000424
|
||||
v -5.383982 2.998551 8.995652
|
||||
v 2.268329 0.951312 11.654519
|
||||
v 2.268761 0.950846 8.999113
|
||||
v -1.660040 0.949837 8.997695
|
||||
v 2.268761 0.937427 8.999113
|
||||
v -1.660040 0.936418 8.997695
|
||||
v -1.660471 0.950304 11.653101
|
||||
v -1.661540 -2.984763 11.654572
|
||||
v 2.268169 -2.984763 11.654430
|
||||
@@ -87,57 +87,57 @@ vn 0.0003 -0.0004 -1.0000
|
||||
vn -0.0000 -0.0006 -1.0000
|
||||
vn 0.0002 -0.0002 -1.0000
|
||||
vn 1.0000 -0.0003 0.0002
|
||||
vt 0.564261 0.354754
|
||||
vt 0.564261 0.645246
|
||||
vt 0.225353 0.645246
|
||||
vt 0.225353 0.354754
|
||||
vt 0.459841 0.355387
|
||||
vt 0.460302 0.497967
|
||||
vt 0.209507 0.645246
|
||||
vt 0.209507 0.354754
|
||||
vt 0.530734 0.497967
|
||||
vt 0.530273 0.355387
|
||||
vt 0.790493 0.354754
|
||||
vt 0.790493 0.645246
|
||||
vt 0.564135 0.354796
|
||||
vt 0.128522 0.354754
|
||||
vt 0.128522 0.645246
|
||||
vt 0.564135 0.645204
|
||||
vt 0.209657 0.354754
|
||||
vt 0.112677 0.354754
|
||||
vt 0.112900 0.645162
|
||||
vt 0.209853 0.645173
|
||||
vt 0.564261 0.645162
|
||||
vt 0.128774 0.645162
|
||||
vt 0.887323 0.354754
|
||||
vt 0.790189 0.354754
|
||||
vt 0.790217 0.645236
|
||||
vt 0.887323 0.645246
|
||||
vt 0.887212 0.645204
|
||||
vt 0.790091 0.354790
|
||||
vt 0.887212 0.354796
|
||||
vt 0.239145 0.354754
|
||||
vt 0.239332 0.645176
|
||||
vt 0.128565 0.546036
|
||||
vt 0.128569 0.355469
|
||||
vt 0.000007 0.355491
|
||||
vt 0.000003 0.546058
|
||||
vt 0.209643 0.354759
|
||||
vt 0.239127 0.354761
|
||||
vt 0.238557 0.354754
|
||||
vt 0.238557 0.645246
|
||||
vt 0.609835 0.355469
|
||||
vt 0.609843 0.546036
|
||||
vt 0.419628 0.545987
|
||||
vt 0.419577 0.355469
|
||||
vt 0.609814 0.355491
|
||||
vt 0.419556 0.355491
|
||||
vt 0.419608 0.546009
|
||||
vt 0.609822 0.546058
|
||||
vt 0.128563 0.355469
|
||||
vt 0.128634 0.545987
|
||||
vt 0.000071 0.546009
|
||||
vt 0.000000 0.355491
|
||||
vt 0.811061 0.339860
|
||||
vt 0.811061 0.660140
|
||||
vt 0.437401 0.660140
|
||||
vt 0.437401 0.339860
|
||||
vt 0.455723 0.340558
|
||||
vt 0.456231 0.497759
|
||||
vt 0.179719 0.660140
|
||||
vt 0.179719 0.339860
|
||||
vt 0.533886 0.497759
|
||||
vt 0.533377 0.340558
|
||||
vt 0.820281 0.339860
|
||||
vt 0.820281 0.660140
|
||||
vt 0.810922 0.339906
|
||||
vt 0.330640 0.339860
|
||||
vt 0.330640 0.660140
|
||||
vt 0.810922 0.660095
|
||||
vt 0.179885 0.339860
|
||||
vt 0.072960 0.339860
|
||||
vt 0.073206 0.660048
|
||||
vt 0.180101 0.660060
|
||||
vt 0.811061 0.660048
|
||||
vt 0.330918 0.660048
|
||||
vt 0.927040 0.339860
|
||||
vt 0.819946 0.339860
|
||||
vt 0.819977 0.660129
|
||||
vt 0.927040 0.660140
|
||||
vt 0.926918 0.660095
|
||||
vt 0.819838 0.339900
|
||||
vt 0.926918 0.339906
|
||||
vt 0.212396 0.339860
|
||||
vt 0.212602 0.660062
|
||||
vt 0.330688 0.550041
|
||||
vt 0.330692 0.339932
|
||||
vt 0.188947 0.340673
|
||||
vt 0.188942 0.550781
|
||||
vt 0.179869 0.339866
|
||||
vt 0.212377 0.339867
|
||||
vt 0.211748 0.339860
|
||||
vt 0.211747 0.660140
|
||||
vt 0.621098 0.339932
|
||||
vt 0.621107 0.550041
|
||||
vt 0.411387 0.549986
|
||||
vt 0.411330 0.339932
|
||||
vt 0.621076 0.340673
|
||||
vt 0.411307 0.340673
|
||||
vt 0.411364 0.550727
|
||||
vt 0.621084 0.550781
|
||||
vt 0.330685 0.339932
|
||||
vt 0.330763 0.549986
|
||||
vt 0.189018 0.550727
|
||||
vt 0.188939 0.340673
|
||||
s 0
|
||||
usemtl Walls2
|
||||
f 21/13/2 22/14/2 16/15/2 15/16/2
|
||||
@@ -163,52 +163,48 @@ v -5.816871 -2.999853 6.599066
|
||||
v 5.578337 -3.000009 6.599066
|
||||
v -8.000000 -3.000000 0.000000
|
||||
v 7.997691 -2.999134 0.002598
|
||||
v 2.268600 -2.985230 8.999024
|
||||
v -5.322061 -2.999931 6.599066
|
||||
v -1.661109 -2.985230 8.999166
|
||||
v -4.793639 -2.999931 6.599066
|
||||
v 5.081094 -2.999931 6.599066
|
||||
v -1.661540 -2.984763 11.654572
|
||||
v 2.268169 -2.984763 11.654430
|
||||
v -8.000000 -3.000000 9.000000
|
||||
v -5.816870 -2.999923 0.000151
|
||||
v 5.993731 -3.000000 9.000000
|
||||
v 8.000000 -3.000000 9.000000
|
||||
v 5.576653 -2.999212 0.002738
|
||||
v -5.387847 -3.000000 9.000000
|
||||
v -5.996903 -3.000000 9.000000
|
||||
vn -0.0000 1.0000 -0.0002
|
||||
v 2.268600 -2.998648 8.999024
|
||||
v -1.661109 -2.998648 8.999166
|
||||
v -1.661540 -2.984763 11.654572
|
||||
v 2.268169 -2.984763 11.654430
|
||||
vn -0.0001 1.0000 -0.0000
|
||||
vn -0.0000 1.0000 -0.0000
|
||||
vn -0.0001 1.0000 0.0001
|
||||
vn -0.0000 1.0000 -0.0052
|
||||
vn -0.0000 1.0000 0.0001
|
||||
vt 0.609835 0.128569
|
||||
vt 0.419577 0.128563
|
||||
vt 0.419556 0.000000
|
||||
vt 0.609814 0.000007
|
||||
vt 0.182045 0.197891
|
||||
vt 0.182045 0.564261
|
||||
vt 0.112677 0.564261
|
||||
vt 0.112677 0.128522
|
||||
vt 0.817937 0.197891
|
||||
vt 0.790189 0.197891
|
||||
vt 0.790189 0.128522
|
||||
vt 0.887323 0.128522
|
||||
vt 0.817843 0.564118
|
||||
vt 0.887212 0.564135
|
||||
vt 0.239145 0.197891
|
||||
vt 0.239145 0.128522
|
||||
vt 0.209657 0.197891
|
||||
vt 0.209657 0.128522
|
||||
vn 0.0002 1.0000 0.0001
|
||||
vn -0.0001 1.0000 0.0001
|
||||
vt 0.179472 0.457473
|
||||
vt 0.059175 0.821101
|
||||
vt 0.059175 0.325174
|
||||
vt 0.169552 0.325174
|
||||
vt 0.940825 0.325174
|
||||
vt 0.807384 0.457473
|
||||
vt 0.624983 0.178906
|
||||
vt 0.408468 0.325220
|
||||
vt 0.408444 0.178899
|
||||
vt 0.179472 0.821093
|
||||
vt 0.940698 0.820958
|
||||
vt 0.807291 0.820951
|
||||
vt 0.206738 0.457473
|
||||
vt 0.625007 0.325227
|
||||
s 0
|
||||
usemtl Ground2
|
||||
f 56/64/19 58/65/19 61/66/19 62/67/19
|
||||
f 52/68/20 64/69/20 54/70/20 63/71/20
|
||||
f 53/72/21 60/73/21 65/74/21 66/75/21
|
||||
f 67/76/22 53/72/22 66/75/22 55/77/22
|
||||
f 60/73/21 59/78/21 68/79/21 65/74/21
|
||||
f 57/80/23 52/68/23 63/71/23 69/81/23
|
||||
f 59/78/21 57/80/21 69/81/21 68/79/21
|
||||
f 52/64/19 54/65/19 57/66/19
|
||||
f 61/67/20 59/68/20 53/69/20
|
||||
f 65/70/21 63/71/21 64/72/21
|
||||
f 52/64/20 58/73/20 54/65/20
|
||||
f 55/74/22 60/75/22 53/69/22
|
||||
f 56/76/23 52/64/23 61/67/23
|
||||
f 52/64/22 57/66/22 61/67/22
|
||||
f 59/68/24 55/74/24 53/69/24
|
||||
f 53/69/20 56/76/20 61/67/20
|
||||
f 65/70/21 62/77/21 63/71/21
|
||||
o Walls1
|
||||
v -5.399996 -3.000000 6.300002
|
||||
v -5.400000 3.000000 6.300000
|
||||
@@ -232,10 +228,6 @@ v -0.829472 -2.986924 6.354905
|
||||
v -0.819950 -0.041988 6.364243
|
||||
v 0.634806 -0.041988 6.364243
|
||||
v 0.625284 -2.986924 6.354905
|
||||
v 2.268600 -2.985230 8.999024
|
||||
v -1.661109 -2.985230 8.999166
|
||||
v 5.993731 -3.000000 9.000000
|
||||
v -5.387847 -3.000000 9.000000
|
||||
vn -0.0000 -0.0000 1.0000
|
||||
vn -1.0000 -0.0000 -0.0000
|
||||
vn 0.0134 0.0010 -0.9999
|
||||
@@ -245,47 +237,41 @@ vn 1.0000 -0.0000 -0.0000
|
||||
vn -0.0000 -1.0000 -0.0000
|
||||
vn 1.0000 -0.0032 -0.0000
|
||||
vn -1.0000 0.0032 -0.0000
|
||||
vn -0.0000 -0.0611 -0.9981
|
||||
vt 0.238557 0.354754
|
||||
vt 0.761443 0.354754
|
||||
vt 0.761443 0.645246
|
||||
vt 0.238557 0.645246
|
||||
vt 0.869278 0.354754
|
||||
vt 0.259244 0.354754
|
||||
vt 0.259244 0.645246
|
||||
vt 0.869278 0.645246
|
||||
vt 0.459841 0.355387
|
||||
vt 0.238557 0.354754
|
||||
vt 0.460302 0.497967
|
||||
vt 0.530734 0.497967
|
||||
vt 0.761443 0.354754
|
||||
vt 0.530273 0.355387
|
||||
vt 0.564261 0.354754
|
||||
vt 0.564261 0.645246
|
||||
vt 0.530734 0.228463
|
||||
vt 0.460302 0.228463
|
||||
vt 0.460302 0.256134
|
||||
vt 0.530734 0.256134
|
||||
vt 0.228463 0.497967
|
||||
vt 0.228916 0.355387
|
||||
vt 0.256586 0.355387
|
||||
vt 0.256134 0.497967
|
||||
vt 0.419577 0.355469
|
||||
vt 0.609835 0.355469
|
||||
vt 0.790189 0.354754
|
||||
vt 0.239145 0.354754
|
||||
vt 0.202443 0.334691
|
||||
vt 0.797557 0.334691
|
||||
vt 0.797557 0.665309
|
||||
vt 0.202443 0.665309
|
||||
vt 0.864666 0.334691
|
||||
vt 0.170366 0.334691
|
||||
vt 0.170367 0.665309
|
||||
vt 0.864666 0.665309
|
||||
vt 0.454294 0.335411
|
||||
vt 0.202444 0.334691
|
||||
vt 0.454818 0.497686
|
||||
vt 0.534980 0.497686
|
||||
vt 0.797556 0.334691
|
||||
vt 0.534455 0.335411
|
||||
vt 0.517516 0.334691
|
||||
vt 0.517516 0.665309
|
||||
vt 0.534980 0.497639
|
||||
vt 0.454818 0.497639
|
||||
vt 0.454818 0.529131
|
||||
vt 0.534980 0.529131
|
||||
vt 0.135334 0.497686
|
||||
vt 0.135849 0.335411
|
||||
vt 0.167341 0.335411
|
||||
vt 0.166827 0.497686
|
||||
s 0
|
||||
usemtl Walls1
|
||||
f 72/82/24 76/83/24 77/84/24 73/85/24
|
||||
f 76/86/25 74/87/25 75/88/25 77/89/25
|
||||
f 78/90/26 70/91/26 71/85/26 79/92/26
|
||||
f 80/93/27 75/84/27 74/94/27 81/95/27
|
||||
f 79/92/28 71/85/28 75/84/28 80/93/28
|
||||
f 82/96/29 72/86/29 73/89/29 83/97/29 71/88/29 70/87/29
|
||||
f 86/98/30 85/99/30 89/100/30 90/101/30
|
||||
f 85/102/31 84/103/31 88/104/31 89/105/31
|
||||
f 87/103/32 86/102/32 90/105/32 91/104/32
|
||||
f 93/106/33 92/107/33 94/108/33 95/109/33
|
||||
f 68/78/25 72/79/25 73/80/25 69/81/25
|
||||
f 72/82/26 70/83/26 71/84/26 73/85/26
|
||||
f 74/86/27 66/87/27 67/81/27 75/88/27
|
||||
f 76/89/28 71/80/28 70/90/28 77/91/28
|
||||
f 75/88/29 67/81/29 71/80/29 76/89/29
|
||||
f 78/92/30 68/82/30 69/85/30 79/93/30 67/84/30 66/83/30
|
||||
f 82/94/31 81/95/31 85/96/31 86/97/31
|
||||
f 81/98/32 80/99/32 84/100/32 85/101/32
|
||||
f 83/99/33 82/98/33 86/101/33 87/100/33
|
||||
o Ceiling
|
||||
v -6.000000 3.000000 7.000000
|
||||
v 6.000000 3.000000 7.000000
|
||||
@@ -309,25 +295,27 @@ v 5.400000 3.000000 -6.300000
|
||||
vn 0.0002 -1.0000 -0.0002
|
||||
vn 0.0003 -1.0000 0.0002
|
||||
vn -0.0000 -1.0000 -0.0000
|
||||
vt 0.790493 0.645246
|
||||
vt 0.564135 0.645204
|
||||
vt 0.887323 0.645246
|
||||
vt 0.790217 0.645236
|
||||
vt 0.239332 0.645176
|
||||
vt 0.209853 0.645173
|
||||
vt 0.128774 0.645162
|
||||
vt 0.564261 0.645162
|
||||
vt 0.564261 0.645246
|
||||
vt 0.209507 0.645246
|
||||
vt 0.128634 0.545987
|
||||
vt 0.128565 0.546036
|
||||
vt 0.609822 0.546058
|
||||
vt 0.000071 0.546009
|
||||
vt 0.238557 0.645246
|
||||
vt 0.869278 0.645246
|
||||
vt 0.761443 0.645246
|
||||
vt 0.830491 0.261804
|
||||
vt 0.830491 0.647525
|
||||
vt 0.940570 0.647382
|
||||
vt 0.940698 0.151597
|
||||
vt 0.830178 0.151633
|
||||
vt 0.203199 0.151837
|
||||
vt 0.169647 0.151848
|
||||
vt 0.059302 0.151884
|
||||
vt 0.059302 0.647525
|
||||
vt 0.169254 0.647525
|
||||
vt 0.169254 0.261804
|
||||
vt 0.408399 0.151725
|
||||
vt 0.624888 0.151646
|
||||
vt 0.624865 0.005325
|
||||
vt 0.408376 0.005403
|
||||
vt 0.202316 0.994675
|
||||
vt 0.797430 0.994675
|
||||
vt 0.797430 0.300376
|
||||
vt 0.202316 0.300376
|
||||
s 0
|
||||
usemtl Ceiling
|
||||
f 97/110/34 98/110/34 103/111/34 100/112/34 104/113/34 106/114/34 105/115/34 101/116/34 102/117/34 99/118/34 96/119/34
|
||||
f 109/120/35 108/121/35 107/122/35 110/123/35
|
||||
f 112/124/36 114/125/36 113/126/36 111/124/36
|
||||
f 89/102/34 90/103/34 95/104/34 92/105/34 96/106/34 98/107/34 97/108/34 93/109/34 94/110/34 91/111/34 88/112/34
|
||||
f 101/113/35 100/114/35 99/115/35 102/116/35
|
||||
f 104/117/36 106/118/36 105/119/36 103/120/36
|
||||
|
BIN
assets/textures/material/froggy_texture.png
Normal file
BIN
assets/textures/material/froggy_texture.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 146 KiB |
36
assets/textures/material/froggy_texture.png.import
Normal file
36
assets/textures/material/froggy_texture.png.import
Normal file
@@ -0,0 +1,36 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://ctcakbpmsm3tk"
|
||||
path.s3tc="res://.godot/imported/froggy_texture.png-bd5e408cafb4087b4ed647e6d9d88b4d.s3tc.ctex"
|
||||
path.etc2="res://.godot/imported/froggy_texture.png-bd5e408cafb4087b4ed647e6d9d88b4d.etc2.ctex"
|
||||
metadata={
|
||||
"imported_formats": ["s3tc_bptc", "etc2_astc"],
|
||||
"vram_texture": true
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/textures/material/froggy_texture.png"
|
||||
dest_files=["res://.godot/imported/froggy_texture.png-bd5e408cafb4087b4ed647e6d9d88b4d.s3tc.ctex", "res://.godot/imported/froggy_texture.png-bd5e408cafb4087b4ed647e6d9d88b4d.etc2.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=2
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=true
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=0
|
@@ -56,6 +56,44 @@ render_target_update_mode = 4
|
||||
|
||||
[node name="LVL1" parent="SubViewportContainer/SubViewport" instance=ExtResource("2_pnids")]
|
||||
|
||||
[node name="interior" parent="SubViewportContainer/SubViewport/LVL1" index="1"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0)
|
||||
|
||||
[node name="Ground1" parent="SubViewportContainer/SubViewport/LVL1/interior" index="0"]
|
||||
surface_material_override/0 = null
|
||||
|
||||
[node name="StaticBody3D" parent="SubViewportContainer/SubViewport/LVL1/interior/Ground1" index="0"]
|
||||
collision_layer = 1
|
||||
collision_mask = 1
|
||||
|
||||
[node name="Walls2" parent="SubViewportContainer/SubViewport/LVL1/interior" index="1"]
|
||||
surface_material_override/0 = null
|
||||
|
||||
[node name="StaticBody3D" parent="SubViewportContainer/SubViewport/LVL1/interior/Walls2" index="0"]
|
||||
collision_layer = 1
|
||||
collision_mask = 1
|
||||
|
||||
[node name="Ground2" parent="SubViewportContainer/SubViewport/LVL1/interior" index="2"]
|
||||
surface_material_override/0 = null
|
||||
|
||||
[node name="StaticBody3D" parent="SubViewportContainer/SubViewport/LVL1/interior/Ground2" index="0"]
|
||||
collision_layer = 1
|
||||
collision_mask = 1
|
||||
|
||||
[node name="Walls1" parent="SubViewportContainer/SubViewport/LVL1/interior" index="3"]
|
||||
surface_material_override/0 = null
|
||||
|
||||
[node name="StaticBody3D" parent="SubViewportContainer/SubViewport/LVL1/interior/Walls1" index="0"]
|
||||
collision_layer = 1
|
||||
collision_mask = 1
|
||||
|
||||
[node name="Ceiling" parent="SubViewportContainer/SubViewport/LVL1/interior" index="4"]
|
||||
surface_material_override/0 = null
|
||||
|
||||
[node name="StaticBody3D" parent="SubViewportContainer/SubViewport/LVL1/interior/Ceiling" index="0"]
|
||||
collision_layer = 1
|
||||
collision_mask = 1
|
||||
|
||||
[node name="Player" parent="SubViewportContainer/SubViewport/LVL1" index="2"]
|
||||
visible = false
|
||||
|
||||
|
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=32 format=3 uid="uid://ckad8stc13n83"]
|
||||
[gd_scene load_steps=33 format=3 uid="uid://ckad8stc13n83"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://ddwkhfly2xyyt" path="res://assets/models/interior.obj" id="1_xs30l"]
|
||||
[ext_resource type="Material" uid="uid://1w6e5sx6poff" path="res://assets/textures/material/tilesslatesquare/tilesslatesquare.material" id="2_evxh1"]
|
||||
@@ -22,6 +22,7 @@
|
||||
[ext_resource type="PackedScene" uid="uid://n2fxmsp27rfs" path="res://scenes/objects/furniture/wall_holder.tscn" id="21_lktft"]
|
||||
[ext_resource type="AudioStream" uid="uid://ddpvabd43s3p4" path="res://assets/audio/voicelines/anouncer_intro_04.ogg" id="21_n11nj"]
|
||||
[ext_resource type="Material" uid="uid://canvgrlphqagw" path="res://assets/materials/light_metal.material" id="22_ixwoq"]
|
||||
[ext_resource type="PackedScene" uid="uid://ckv2ssarxiv8w" path="res://scenes/objects/physics_objects/froggy.tscn" id="23_uexwc"]
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_thqbu"]
|
||||
|
||||
@@ -161,6 +162,10 @@ transform = Transform3D(-4.37114e-07, 0, -15, 0, 10, 0, 10, 0, -6.55671e-07, 5.3
|
||||
[node name="MeshInstance3D" parent="Wallholder" index="0"]
|
||||
surface_material_override/1 = ExtResource("22_ixwoq")
|
||||
|
||||
[node name="Froggy" parent="." instance=ExtResource("23_uexwc")]
|
||||
transform = Transform3D(0.162376, -0.965347, 0.2043, -0.0444635, 0.199679, 0.978852, -0.985727, -0.168026, -0.0104995, 7.00408, 0.191834, 0.998893)
|
||||
freeze = true
|
||||
|
||||
[connection signal="lock" from="CompletionCounter" to="Door" method="close"]
|
||||
[connection signal="unlock" from="CompletionCounter" to="Door" method="open"]
|
||||
|
||||
|
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=19 format=3 uid="uid://c17x7kmjmqdk3"]
|
||||
[gd_scene load_steps=22 format=3 uid="uid://c17x7kmjmqdk3"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://cbb37i3xvtp50" path="res://assets/models/interior2.obj" id="3_wurqx"]
|
||||
[ext_resource type="Texture2D" uid="uid://dsn5u1ymp1eki" path="res://assets/textures/material/concrete/concrete_color.png" id="4_1qe3t"]
|
||||
@@ -17,6 +17,7 @@
|
||||
[ext_resource type="PackedScene" uid="uid://bg2t4r1vey0pg" path="res://scenes/objects/physics_objects/security_cam.tscn" id="15_uo5we"]
|
||||
[ext_resource type="PackedScene" uid="uid://n2fxmsp27rfs" path="res://scenes/objects/furniture/wall_holder.tscn" id="16_f60rn"]
|
||||
[ext_resource type="PackedScene" uid="uid://b7evqwig6js8j" path="res://scenes/objects/physics_objects/office_chair.tscn" id="17_y5de5"]
|
||||
[ext_resource type="PackedScene" uid="uid://ckv2ssarxiv8w" path="res://scenes/objects/physics_objects/froggy.tscn" id="18_stcip"]
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_6f4qa"]
|
||||
albedo_texture = ExtResource("4_1qe3t")
|
||||
@@ -28,6 +29,15 @@ ao_enabled = true
|
||||
ao_texture = ExtResource("5_2hu3x")
|
||||
uv1_scale = Vector3(8.5, 8.5, 8.5)
|
||||
|
||||
[sub_resource type="ViewportTexture" id="ViewportTexture_6in6u"]
|
||||
viewport_path = NodePath("Cube7/SubViewport")
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_y082c"]
|
||||
resource_local_to_scene = true
|
||||
albedo_texture = SubResource("ViewportTexture_6in6u")
|
||||
uv1_scale = Vector3(3, 3, 3)
|
||||
uv1_offset = Vector3(-0.08, -0.47, 0)
|
||||
|
||||
[node name="LVL2" type="Node3D"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 1)
|
||||
|
||||
@@ -85,6 +95,9 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 15.8526, 1.06541, -16.7374)
|
||||
[node name="ComputerScreen2" parent="." instance=ExtResource("12_djkgb")]
|
||||
transform = Transform3D(-0.305014, 0, 0.952348, 0, 1, 0, -0.952348, 0, -0.305014, 16.3998, 1.5475, -16.7259)
|
||||
|
||||
[node name="MeshInstance3D" parent="ComputerScreen2" index="0"]
|
||||
surface_material_override/1 = SubResource("StandardMaterial3D_y082c")
|
||||
|
||||
[node name="Desk3" parent="." instance=ExtResource("5_u4bki")]
|
||||
transform = Transform3D(0.8, 0, 0, 0, 0.8, 0, 0, 0, 0.8, 15.9585, 1, -7.9819)
|
||||
|
||||
@@ -118,6 +131,11 @@ transform = Transform3D(3, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0.951174)
|
||||
[node name="Cube7" parent="." instance=ExtResource("15_uo5we")]
|
||||
transform = Transform3D(0.141057, 0, 0.990001, 0, 1, 0, -0.990001, 0, 0.141057, 1.35667, 7.33879, 16.6137)
|
||||
|
||||
[node name="SubViewport" type="SubViewport" parent="Cube7"]
|
||||
|
||||
[node name="Camera3D" type="Camera3D" parent="Cube7/SubViewport"]
|
||||
transform = Transform3D(-4.32313e-08, -0.989016, -0.147809, 1, -4.37114e-08, 0, -6.46095e-09, -0.147809, 0.989016, 2.41563, 7.35777, 17.1086)
|
||||
|
||||
[node name="Wallholder" parent="." instance=ExtResource("16_f60rn")]
|
||||
transform = Transform3D(-2.5, 0, -3.77489e-07, 0, 2.5, 0, 3.77489e-07, 0, -2.5, 1.35957, 6.90852, 17.2163)
|
||||
|
||||
@@ -142,5 +160,9 @@ transform = Transform3D(-0.11022, 0, 0.993907, 0, 1, 0, -0.993907, 0, -0.11022,
|
||||
[node name="Desk5" parent="." instance=ExtResource("5_u4bki")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -5.041, 1, -12.067)
|
||||
|
||||
[node name="Froggy" parent="." instance=ExtResource("18_stcip")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -5, 0.676921, -15)
|
||||
|
||||
[editable path="interior2"]
|
||||
[editable path="ComputerScreen2"]
|
||||
[editable path="Area3D"]
|
||||
|
69
scenes/levels/lvl_3.tscn
Normal file
69
scenes/levels/lvl_3.tscn
Normal file
@@ -0,0 +1,69 @@
|
||||
[gd_scene load_steps=10 format=3 uid="uid://b4ofkr6mkwh6b"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://ddwkhfly2xyyt" path="res://assets/models/interior.obj" id="1_o2dcb"]
|
||||
[ext_resource type="Material" uid="uid://1w6e5sx6poff" path="res://assets/textures/material/tilesslatesquare/tilesslatesquare.material" id="2_35w8n"]
|
||||
[ext_resource type="Material" uid="uid://du8w0x0kmgjui" path="res://assets/textures/material/bricks/bricks.tres" id="3_ots23"]
|
||||
[ext_resource type="Material" uid="uid://bg5hb1744y4ik" path="res://assets/textures/material/planks/planks.material" id="4_6h3ie"]
|
||||
[ext_resource type="Material" uid="uid://c6rvbga7g5f4l" path="res://assets/textures/material/tiles_white/tiles_white.material" id="5_kpr5l"]
|
||||
[ext_resource type="PackedScene" uid="uid://gg5ph541e4p3" path="res://scenes/player.tscn" id="6_6mqu6"]
|
||||
[ext_resource type="PackedScene" uid="uid://ced2w03t8er5k" path="res://scenes/objects/physics_objects/cube.tscn" id="10_7eyfc"]
|
||||
[ext_resource type="PackedScene" uid="uid://d2rmg0r1hircj" path="res://scenes/level_finish_area.tscn" id="20_andv2"]
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_thqbu"]
|
||||
|
||||
[node name="LVL1" type="Node3D"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 1)
|
||||
|
||||
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
|
||||
transform = Transform3D(0.707107, -0.707107, -4.21468e-08, -0.5, -0.5, 0.707107, -0.5, -0.5, -0.707107, 0, 0, 0)
|
||||
directional_shadow_blend_splits = true
|
||||
sky_mode = 1
|
||||
|
||||
[node name="interior" parent="." instance=ExtResource("1_o2dcb")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 3, 0)
|
||||
|
||||
[node name="Ground1" parent="interior" index="0"]
|
||||
surface_material_override/0 = ExtResource("2_35w8n")
|
||||
|
||||
[node name="StaticBody3D" parent="interior/Ground1" index="0"]
|
||||
collision_layer = 7
|
||||
collision_mask = 7
|
||||
|
||||
[node name="Walls2" parent="interior" index="1"]
|
||||
surface_material_override/0 = ExtResource("3_ots23")
|
||||
|
||||
[node name="StaticBody3D" parent="interior/Walls2" index="0"]
|
||||
collision_layer = 7
|
||||
collision_mask = 7
|
||||
|
||||
[node name="Ground2" parent="interior" index="2"]
|
||||
surface_material_override/0 = ExtResource("4_6h3ie")
|
||||
|
||||
[node name="StaticBody3D" parent="interior/Ground2" index="0"]
|
||||
collision_layer = 7
|
||||
collision_mask = 7
|
||||
|
||||
[node name="Walls1" parent="interior" index="3"]
|
||||
surface_material_override/0 = ExtResource("5_kpr5l")
|
||||
|
||||
[node name="StaticBody3D" parent="interior/Walls1" index="0"]
|
||||
collision_layer = 7
|
||||
collision_mask = 7
|
||||
|
||||
[node name="Ceiling" parent="interior" index="4"]
|
||||
surface_material_override/0 = SubResource("StandardMaterial3D_thqbu")
|
||||
|
||||
[node name="StaticBody3D" parent="interior/Ceiling" index="0"]
|
||||
collision_layer = 7
|
||||
collision_mask = 7
|
||||
|
||||
[node name="Player" parent="." instance=ExtResource("6_6mqu6")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 5.7209)
|
||||
|
||||
[node name="Cube" parent="." instance=ExtResource("10_7eyfc")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.51, 0)
|
||||
|
||||
[node name="Area3D" parent="." instance=ExtResource("20_andv2")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.318473, 2, 10.63)
|
||||
|
||||
[editable path="interior"]
|
53
scenes/objects/physics_objects/froggy.tscn
Normal file
53
scenes/objects/physics_objects/froggy.tscn
Normal file
@@ -0,0 +1,53 @@
|
||||
[gd_scene load_steps=8 format=3 uid="uid://ckv2ssarxiv8w"]
|
||||
|
||||
[ext_resource type="ArrayMesh" uid="uid://b3l6pyb38w4p2" path="res://assets/models/froggy.obj" id="1_ndma4"]
|
||||
|
||||
[sub_resource type="PhysicsMaterial" id="PhysicsMaterial_rff84"]
|
||||
rough = true
|
||||
bounce = 0.1
|
||||
absorbent = true
|
||||
|
||||
[sub_resource type="ConvexPolygonShape3D" id="ConvexPolygonShape3D_ujow2"]
|
||||
points = PackedVector3Array(-0.296944, 0.00598377, -0.131035, 0.0598303, 1.55901, 0.0176768, 0.0598412, 1.55915, -0.0122384, 0.971757, 0.934856, -0.0435632, -0.143709, 0.921845, 0.447703, -0.877685, 1.06028, -0.168961, 0.116691, 1.12898, -0.480102, 0.375898, -0.00549036, 0.269783, -0.376094, -0.00549036, 0.269783, 0.263986, 0.0146688, -0.15904, -0.877685, 1.12299, 0.175711, 0.174931, 1.24529, 0.425821, 0.877488, 1.12299, 0.175711, 0.0587067, 1.42645, -0.336325, -0.114233, 0.94953, -0.469527, 0.877488, 1.06028, -0.168961, -0.971757, 0.934856, -0.0435632, -0.146399, 1.36381, 0.368344, -0.680553, 1.31077, -0.0418075, 0.856491, 1.22114, -0.0712748, 0.172422, 0.950783, 0.448395, -0.173851, 1.27085, -0.418072, 0.176193, 1.45471, 0.25242, 0.114064, 0.949545, -0.469568, -0.148272, 1.5194, 0.135941, -0.147473, 1.48598, -0.218663, 0.971757, 0.966132, 0.112963, -0.175688, 1.12973, 0.456629, -0.971757, 0.966132, 0.112963, -0.923723, 1.16556, -0.0717913, 0.355105, 0.00816204, -0.0418304, 0.258717, 0.0587665, 0.304171, -0.291361, 0.0497211, -0.157919, 0.202706, 1.3, -0.389133, 0.852789, 1.21923, 0.0758413, 0.118503, 1.52032, -0.160693, -0.852898, 1.21919, 0.0758336, -0.258853, 0.0588885, 0.304117, 0.971757, 0.997567, -0.106213, -0.116865, 1.12895, -0.480066, -0.940334, 1.02868, -0.137636, -0.17798, 1.52009, -0.101228, 0.26627, 1.48885, 0.0764564)
|
||||
|
||||
[sub_resource type="ConvexPolygonShape3D" id="ConvexPolygonShape3D_3wihb"]
|
||||
points = PackedVector3Array(-0.24906, 1.42126, -0.192299, 0.817873, 3.51988, 0.0211281, 0.818456, 3.52063, -0.0853943, -1.10567, 3.27312, -0.0855922, -0.0353342, 2.09882, 0.942983, 0.526759, 2.06721, -0.786694, 0.957099, 1.85066, 0.198396, -0.281872, 2.38315, -0.894952, -0.992233, 1.88634, 0.127338, -0.870663, 3.35887, 0.19496, 1.13982, 3.20085, 0.056821, -0.631974, 1.82138, -0.611216, -0.0706335, 1.49955, 0.515609, 0.173026, 2.59197, 0.851374, -0.664405, 2.03395, 0.685354, -0.842439, 3.43613, -0.224635, 0.31754, 1.50054, -0.473093, 0.66437, 2.03395, 0.685354, 0.138814, 2.7659, -0.77795, 0.989952, 2.0645, -0.297068, 1.01698, 3.25982, -0.224423, -0.140949, 1.71318, -0.789764, 0.49543, 1.49819, 0.268683, -0.913901, 2.2075, -0.436004, -0.348507, 2.41891, 0.85726, -1.1335, 3.12601, 0.0918063, -0.707076, 1.56957, 0.127053, 0.421946, 1.64458, 0.618902, 0.668851, 1.60844, -0.331084, 0.799217, 3.39159, 0.194529, 0.281837, 2.38315, -0.894952, -0.780559, 3.5176, 0.0566214, -0.0690543, 2.83351, 0.711511, -0.491607, 1.64607, 0.582642, 0.487452, 2.41897, 0.786584, 0.842429, 3.43616, -0.224642, -1.02352, 1.99463, -0.15537, -0.664041, 2.41876, -0.678148, -0.668886, 1.60844, -0.331084, 1.06293, 2.24083, 0.198293, -0.952239, 2.03024, 0.37363, -0.176312, 1.74832, 0.796685, 0.176244, 1.85413, -0.86031, -0.282012, 2.06577, -0.895398, -0.317495, 1.53605, -0.54346, 0.245795, 2.03207, 0.899132)
|
||||
|
||||
[sub_resource type="ConvexPolygonShape3D" id="ConvexPolygonShape3D_in1v0"]
|
||||
points = PackedVector3Array(-0.294888, 0.623473, 0.558058, 0.127069, 1.50086, 0.30314, 0.131452, 1.51577, 0.272685, 0.634556, 0.650858, 0.257379, -0.623086, 0.650858, 0.257379, 0.261374, 1.0185, 0.588212, -0.345533, 1.25203, 0.44874, 0.491008, 1.34354, 0.269903, -0.455333, 1.36988, 0.269428, 0.43132, 0.68769, 0.523841, -0.0170524, 1.29326, 0.53989, -0.375293, 0.92153, 0.543971, -0.137753, 0.729388, 0.616192, 0.306358, 0.623473, 0.558058, 0.258457, 1.27193, 0.49469, 0.442865, 1.01538, 0.473003, -0.130091, 1.15603, 0.584598, -0.114726, 1.47367, 0.352405, -0.516556, 0.690199, 0.44874, -0.504609, 1.29226, 0.270067, 0.171768, 0.75609, 0.614823)
|
||||
|
||||
[sub_resource type="ConvexPolygonShape3D" id="ConvexPolygonShape3D_n3lhp"]
|
||||
points = PackedVector3Array(-0.0898651, 1.36195, -0.475626, -0.0335026, 1.54102, 0.244714, -0.207479, 1.51739, 0.219551, -0.59562, 0.650722, 0.257379, -0.869146, 1.36147, -0.0707094, -0.0216051, 0.705423, -0.589999, -0.59562, 0.678073, -0.344043, -0.787014, 1.22471, 0.257379, -0.338362, 0.998323, -0.538636, -0.0518874, 1.57343, -0.130343, -0.841686, 1.36147, -0.152754, -0.0144437, 1.53227, 0.265002, -0.650375, 0.650722, -0.180131, -0.869146, 1.30676, 0.120668, -0.0516606, 1.16711, -0.587412, -0.650375, 0.650722, 0.230001, -0.234372, 0.744398, -0.578492, -0.245576, 1.18788, -0.534446, -0.0583712, 1.49118, -0.331002, -0.283417, 1.5403, 0.0180356, -0.841686, 1.30676, 0.202624)
|
||||
|
||||
[sub_resource type="ConvexPolygonShape3D" id="ConvexPolygonShape3D_isgln"]
|
||||
points = PackedVector3Array(0.0983667, 1.3621, -0.475797, 0.216401, 1.51789, 0.220084, -0.0103658, 1.54244, 0.246226, 0.607159, 0.650722, 0.257379, 0.880528, 1.36147, -0.0707094, -0.0215168, 0.705423, -0.589999, 0.607159, 0.678073, -0.344043, 0.798499, 1.22471, 0.257379, 0.274654, 1.06965, -0.563078, 0.0105696, 1.54818, -0.231712, 0.853155, 1.36147, -0.152754, -0.028201, 1.53145, 0.264064, 0.661815, 0.650722, -0.180131, 0.00676981, 1.16745, -0.590889, 0.880528, 1.30676, 0.120668, 0.164752, 1.57059, 0.0457337, 0.368401, 0.749807, -0.524063, 0.661815, 0.650722, 0.230001, 0.1655, 0.789653, -0.608748, 0.252659, 1.28242, -0.488507, 0.771127, 1.27941, -0.234621, 0.853155, 1.30676, 0.202624, 0.204054, 1.44968, -0.347973)
|
||||
|
||||
[node name="Froggy" type="RigidBody3D" groups=["pushables"]]
|
||||
collision_priority = 2.0
|
||||
mass = 0.5
|
||||
physics_material_override = SubResource("PhysicsMaterial_rff84")
|
||||
continuous_cd = true
|
||||
|
||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
|
||||
transform = Transform3D(0.2, 0, 0, 0, 0.2, 0, 0, 0, 0.2, 0, -0.56274, 0)
|
||||
mesh = ExtResource("1_ndma4")
|
||||
|
||||
[node name="CollisionShape3D2" type="CollisionShape3D" parent="."]
|
||||
transform = Transform3D(0.2, 0, 0, 0, 0.2, 0, 0, 0, 0.2, 0, -0.563149, 0)
|
||||
shape = SubResource("ConvexPolygonShape3D_ujow2")
|
||||
|
||||
[node name="CollisionShape3D3" type="CollisionShape3D" parent="."]
|
||||
transform = Transform3D(0.2, 0, 0, 0, 0.2, 0, 0, 0, 0.2, 0, -0.563149, 0)
|
||||
shape = SubResource("ConvexPolygonShape3D_3wihb")
|
||||
|
||||
[node name="CollisionShape3D4" type="CollisionShape3D" parent="."]
|
||||
transform = Transform3D(0.2, 0, 0, 0, 0.2, 0, 0, 0, 0.2, 0, -0.563149, 0)
|
||||
shape = SubResource("ConvexPolygonShape3D_in1v0")
|
||||
|
||||
[node name="CollisionShape3D5" type="CollisionShape3D" parent="."]
|
||||
transform = Transform3D(0.2, 0, 0, 0, 0.2, 0, 0, 0, 0.2, 0, -0.563149, 0)
|
||||
shape = SubResource("ConvexPolygonShape3D_n3lhp")
|
||||
|
||||
[node name="CollisionShape3D6" type="CollisionShape3D" parent="."]
|
||||
transform = Transform3D(0.2, 0, 0, 0, 0.2, 0, 0, 0, 0.2, 0, -0.563149, 0)
|
||||
shape = SubResource("ConvexPolygonShape3D_isgln")
|
@@ -51,9 +51,9 @@ func _physics_process(_delta):
|
||||
collider = null
|
||||
|
||||
func lock_vertical_rotation(body: RigidBody3D, locked: bool):
|
||||
if locked:
|
||||
var rot = body.rotation
|
||||
body.rotation = Vector3(0,rot.y,0)
|
||||
#if locked:
|
||||
#var rot = body.rotation
|
||||
#body.rotation = Vector3(0,rot.y,0)
|
||||
body.axis_lock_linear_x = locked
|
||||
body.axis_lock_linear_z = locked
|
||||
body.axis_lock_angular_x = locked
|
||||
|
Binary file not shown.
Binary file not shown.
BIN
unimported-models/froggy.blend
Normal file
BIN
unimported-models/froggy.blend
Normal file
Binary file not shown.
BIN
unimported-models/froggy.blend1
Normal file
BIN
unimported-models/froggy.blend1
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user