From d8a93200985924c4e90bbb94deadc1c797eaf4cd Mon Sep 17 00:00:00 2001 From: copygirl Date: Fri, 29 Dec 2023 19:29:00 +0100 Subject: [PATCH] Change Grid.StepSize to 5cm --- assets/models/bolt.gltf | 2 +- assets/models/nail.gltf | 2 +- objects/Grid.cs | 8 +- objects/bolt.tscn | 4 +- objects/nail.tscn | 2 +- scenes/workshop.tscn | 191 +++------------------------------------- 6 files changed, 20 insertions(+), 189 deletions(-) diff --git a/assets/models/bolt.gltf b/assets/models/bolt.gltf index 2200a92..eb991d5 100644 --- a/assets/models/bolt.gltf +++ b/assets/models/bolt.gltf @@ -1 +1 @@ -{"asset":{"version":"2.0","generator":"Blockbench 4.9.2 glTF exporter"},"scenes":[{"nodes":[2],"name":"blockbench_export"}],"scene":0,"nodes":[{"rotation":[0,0.13052619222005157,0,0.9914448613738104],"translation":[0,0.046875,0],"name":"head","mesh":0},{"rotation":[0,0.13052619222005157,0,0.9914448613738104],"translation":[0,0.10937500000000003,0],"name":"thread","mesh":1},{"children":[0,1]}],"bufferViews":[{"buffer":0,"byteOffset":0,"byteLength":576,"target":34962,"byteStride":12},{"buffer":0,"byteOffset":576,"byteLength":576,"target":34962,"byteStride":12},{"buffer":0,"byteOffset":1152,"byteLength":384,"target":34962,"byteStride":8},{"buffer":0,"byteOffset":1536,"byteLength":120,"target":34963},{"buffer":0,"byteOffset":1656,"byteLength":432,"target":34962,"byteStride":12},{"buffer":0,"byteOffset":2088,"byteLength":432,"target":34962,"byteStride":12},{"buffer":0,"byteOffset":2520,"byteLength":288,"target":34962,"byteStride":8},{"buffer":0,"byteOffset":2808,"byteLength":96,"target":34963}],"buffers":[{"byteLength":2904,"uri":"data:application/octet-stream;base64,Os2TPAAAAAAAAAA9Os0TPQAAAADgCCMiOs0TPQAAgDzgCCMiOs2TPAAAgDwAAAA9Os0TPQAAAADgCCMiOs2TPAAAAAAAAAC9Os2TPAAAgDwAAAC9Os0TPQAAgDzgCCMiOs2TPAAAAAAAAAC9Os2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gL8AAAAAAAAAAAAAgL8AAAAAAADAPgAAYD8AAAA/AABgPwAAAD8AAAAAAADAPgAAAAAAAMA+AABgPwAAAD8AAGA/AAAAPwAAAAAAAMA+AAAAAAAAwD4AAGA/AAAAPwAAYD8AAAA/AAAAAAAAwD4AAAAAAADAPgAAYD8AAAA/AABgPwAAAD8AAAAAAADAPgAAAAAAAMA+AABgPwAAAD8AAGA/AAAAPwAAAAAAAMA+AAAAAAAAwD4AAGA/AAAAPwAAYD8AAAA/AAAAAAAAwD4AAAAAAADAPgAAUD8Vwc8+AABgP1bU7z4AAGA/VtTvPgAAYD8AAAA/AABQP1bU7z4AAEA/VtTvPgAAQD8Vwc8+AABAPwAAwD4AAFA/AADAPgAAUD9W1O8+AABgP1bU7z4AAEA/AAABAAIAAAACAAMABAAFAAYABAAGAAcACAAJAAoACAAKAAsADAANAA4ADAAOAA8AEAARABIAEAASABMAFAAVABYAFAAWABcAGAAZABoAGwAcAB0AHgAfACAAIQAiACMA"}],"accessors":[{"bufferView":0,"componentType":5126,"count":48,"max":[0.03608439117670059,0.015625,0.03125],"min":[-0.03608439117670059,0,-0.03125],"type":"VEC3"},{"bufferView":1,"componentType":5126,"count":48,"max":[0.8660253882408142,1,1],"min":[-0.8660253882408142,-1,-1],"type":"VEC3"},{"bufferView":2,"componentType":5126,"count":48,"max":[0.25029999017715454,0.25],"min":[0,0],"type":"VEC2"},{"bufferView":3,"componentType":5123,"count":60,"max":[47],"min":[0],"type":"SCALAR"},{"bufferView":4,"componentType":5126,"count":36,"max":[0.018042195588350296,-0.0625,0.015625],"min":[-0.018042195588350296,-0.171875,-0.015625],"type":"VEC3"},{"bufferView":5,"componentType":5126,"count":36,"max":[0.8660253882408142,0,1],"min":[-0.8660253882408142,-1,-1],"type":"VEC3"},{"bufferView":6,"componentType":5126,"count":36,"max":[0.5,0.875],"min":[0.375,0],"type":"VEC2"},{"bufferView":7,"componentType":5123,"count":48,"max":[35],"min":[0],"type":"SCALAR"}],"materials":[{"pbrMetallicRoughness":{"metallicFactor":0,"roughnessFactor":1,"baseColorTexture":{"index":0}},"alphaMode":"MASK","alphaCutoff":0.05,"doubleSided":true}],"textures":[{"sampler":0,"source":0}],"samplers":[{"magFilter":9728,"minFilter":9728,"wrapS":33071,"wrapT":33071}],"images":[{"mimeType":"image/png","uri":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAAXNSR0IArs4c6QAAAFpJREFUKFNjNLH1/8/AwMBw5vBGRm1jt/9Xz+5iBPFBQFTF8D8jsgIQG6QQpkBF1/E/nAMSRDcBxEdRgG4CiI/XBHvXBPwmBESU4jchPr4dVQHM9TA6J73vPwDdtjMIRc6nQAAAAABJRU5ErkJggg=="}],"meshes":[{"primitives":[{"mode":4,"attributes":{"POSITION":0,"NORMAL":1,"TEXCOORD_0":2},"indices":3,"material":0}]},{"primitives":[{"mode":4,"attributes":{"POSITION":4,"NORMAL":5,"TEXCOORD_0":6},"indices":7,"material":0}]}]} \ No newline at end of file +{"asset":{"version":"2.0","generator":"Blockbench 4.9.2 glTF exporter"},"scenes":[{"nodes":[2],"name":"blockbench_export"}],"scene":0,"nodes":[{"rotation":[0,0.13052619222005157,0,0.9914448613738104],"translation":[0,0.037500000000000006,0],"name":"head","mesh":0},{"rotation":[0,0.13052619222005157,0,0.9914448613738104],"translation":[0,0.08750000000000002,0],"name":"thread","mesh":1},{"children":[0,1]}],"bufferViews":[{"buffer":0,"byteOffset":0,"byteLength":576,"target":34962,"byteStride":12},{"buffer":0,"byteOffset":576,"byteLength":576,"target":34962,"byteStride":12},{"buffer":0,"byteOffset":1152,"byteLength":384,"target":34962,"byteStride":8},{"buffer":0,"byteOffset":1536,"byteLength":120,"target":34963},{"buffer":0,"byteOffset":1656,"byteLength":432,"target":34962,"byteStride":12},{"buffer":0,"byteOffset":2088,"byteLength":432,"target":34962,"byteStride":12},{"buffer":0,"byteOffset":2520,"byteLength":288,"target":34962,"byteStride":8},{"buffer":0,"byteOffset":2808,"byteLength":96,"target":34963}],"buffers":[{"byteLength":2904,"uri":"data:application/octet-stream;base64,kHtsPAAAAADNzMw8kHvsPAAAAACAbQIikHvsPM3MTDyAbQIikHtsPM3MTDzNzMw8kHvsPAAAAACAbQIikHtsPAAAAADNzMy8kHtsPM3MTDzNzMy8kHvsPM3MTDyAbQIikHtsPAAAAADNzMy8kHtsvAAAAADNzMy8kHtsvM3MTDzNzMy8kHtsPM3MTDzNzMy8kHtsvAAAAADNzMy8kHvsvAAAAABApMOikHvsvM3MTDxApMOikHtsvM3MTDzNzMy8kHvsvAAAAABApMOikHtsvAAAAADNzMw8kHtsvM3MTDzNzMw8kHvsvM3MTDxApMOikHtsvAAAAADNzMw8kHtsPAAAAADNzMw8kHtsPM3MTDzNzMw8kHtsvM3MTDzNzMw8kHtsPAAAAADNzMy8kHvsPAAAAACAbQIikHtsPAAAAADNzMw8kHtsvAAAAADNzMy8kHtsPAAAAADNzMy8kHvsvAAAAABApMOikHtsvAAAAADNzMw8kHvsvAAAAABApMOikHtsPAAAAADNzMw8kHtsPAAAAADNzMy8kHtsPAAAAADNzMw8kHvsvAAAAABApMOikHtsPM3MTDzNzMw8kHvsPM3MTDyAbQIikHtsPM3MTDzNzMy8kHvsvM3MTDxApMOikHtsPM3MTDzNzMy8kHtsvM3MTDzNzMy8kHtsPM3MTDzNzMw8kHvsvM3MTDxApMOikHtsvM3MTDzNzMw8kHtsPM3MTDzNzMw8kHtsPM3MTDzNzMy8kHvsvM3MTDxApMOi17NdPwAAAAAAAAA/17NdPwAAAAAAAAA/17NdPwAAAAAAAAA/17NdPwAAAAAAAAA/17NdPwAAAAAAAAC/17NdPwAAAAAAAAC/17NdPwAAAAAAAAC/17NdPwAAAAAAAAC/17PdpAAAAAAAAIC/17PdpAAAAAAAAIC/17PdpAAAAAAAAIC/17PdpAAAAAAAAIC/17NdvwAAAAAAAAC/17NdvwAAAAAAAAC/17NdvwAAAAAAAAC/17NdvwAAAAAAAAC/17NdvwAAAAAAA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AAAAAAgL8AAAAAAAAAAAAAgL8AAAAAAAAAAAAAgL8AAAAAAAAAAAAAgL8AAAAAAAAAAAAAgL8AAAAAAAAAAAAAgL8AAAAAAAAAAAAAgL8AAAAAAAAAAAAAgL8AAAAAAAAAAAAAgL8AAAAAAAAAAAAAgL8AAAAAAAAAAAAAgL8AAAAAAADAPgAAYD8AAAA/AABgPwAAAD8AAAAAAADAPgAAAAAAAMA+AABgPwAAAD8AAGA/AAAAPwAAAAAAAMA+AAAAAAAAwD4AAGA/AAAAPwAAYD8AAAA/AAAAAAAAwD4AAAAAAADAPgAAYD8AAAA/AABgPwAAAD8AAAAAAADAPgAAAAAAAMA+AABgPwAAAD8AAGA/AAAAPwAAAAAAAMA+AAAAAAAAwD4AAGA/AAAAPwAAYD8AAAA/AAAAAAAAwD4AAAAAAADAPgAAUD8Vwc8+AABgP1bU7z4AAGA/VtTvPgAAYD8AAAA/AABQP1bU7z4AAEA/VtTvPgAAQD8Vwc8+AABAPwAAwD4AAFA/AADAPgAAUD9W1O8+AABgP1bU7z4AAEA/AAABAAIAAAACAAMABAAFAAYABAAGAAcACAAJAAoACAAKAAsADAANAA4ADAAOAA8AEAARABIAEAASABMAFAAVABYAFAAWABcAGAAZABoAGwAcAB0AHgAfACAAIQAiACMA"}],"accessors":[{"bufferView":0,"componentType":5126,"count":48,"max":[0.028867512941360474,0.012500000186264515,0.02500000037252903],"min":[-0.028867512941360474,0,-0.02500000037252903],"type":"VEC3"},{"bufferView":1,"componentType":5126,"count":48,"max":[0.8660253882408142,1,1],"min":[-0.8660253882408142,-1,-1],"type":"VEC3"},{"bufferView":2,"componentType":5126,"count":48,"max":[0.25029999017715454,0.25],"min":[0,0],"type":"VEC2"},{"bufferView":3,"componentType":5123,"count":60,"max":[47],"min":[0],"type":"SCALAR"},{"bufferView":4,"componentType":5126,"count":36,"max":[0.014433756470680237,-0.05000000074505806,0.012500000186264515],"min":[-0.014433756470680237,-0.13750000298023224,-0.012500000186264515],"type":"VEC3"},{"bufferView":5,"componentType":5126,"count":36,"max":[0.8660253882408142,0,1],"min":[-0.8660253882408142,-1,-1],"type":"VEC3"},{"bufferView":6,"componentType":5126,"count":36,"max":[0.5,0.875],"min":[0.375,0],"type":"VEC2"},{"bufferView":7,"componentType":5123,"count":48,"max":[35],"min":[0],"type":"SCALAR"}],"materials":[{"pbrMetallicRoughness":{"metallicFactor":0,"roughnessFactor":1,"baseColorTexture":{"index":0}},"alphaMode":"MASK","alphaCutoff":0.05,"doubleSided":true}],"textures":[{"sampler":0,"source":0}],"samplers":[{"magFilter":9728,"minFilter":9728,"wrapS":33071,"wrapT":33071}],"images":[{"mimeType":"image/png","uri":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAAXNSR0IArs4c6QAAAFpJREFUKFNjNLH1/8/AwMBw5vBGRm1jt/9Xz+5iBPFBQFTF8D8jsgIQG6QQpkBF1/E/nAMSRDcBxEdRgG4CiI/XBHvXBPwmBESU4jchPr4dVQHM9TA6J73vPwDdtjMIRc6nQAAAAABJRU5ErkJggg=="}],"meshes":[{"primitives":[{"mode":4,"attributes":{"POSITION":0,"NORMAL":1,"TEXCOORD_0":2},"indices":3,"material":0}]},{"primitives":[{"mode":4,"attributes":{"POSITION":4,"NORMAL":5,"TEXCOORD_0":6},"indices":7,"material":0}]}]} \ No newline at end of file diff --git a/assets/models/nail.gltf b/assets/models/nail.gltf index 705b3f0..5a9ed3b 100644 --- a/assets/models/nail.gltf +++ b/assets/models/nail.gltf @@ -1 +1 @@ -{"asset":{"version":"2.0","generator":"Blockbench 4.9.2 glTF exporter"},"scenes":[{"nodes":[2],"name":"blockbench_export"}],"scene":0,"nodes":[{"name":"head","mesh":0},{"name":"pin","mesh":1},{"children":[0,1]}],"bufferViews":[{"buffer":0,"byteOffset":0,"byteLength":288,"target":34962,"byteStride":12},{"buffer":0,"byteOffset":288,"byteLength":288,"target":34962,"byteStride":12},{"buffer":0,"byteOffset":576,"byteLength":192,"target":34962,"byteStride":8},{"buffer":0,"byteOffset":768,"byteLength":72,"target":34963},{"buffer":0,"byteOffset":840,"byteLength":336,"target":34962,"byteStride":12},{"buffer":0,"byteOffset":1176,"byteLength":336,"target":34962,"byteStride":12},{"buffer":0,"byteOffset":1512,"byteLength":224,"target":34962,"byteStride":8},{"buffer":0,"byteOffset":1736,"byteLength":72,"target":34963}],"buffers":[{"byteLength":1808,"uri":"data:application/octet-stream;base64,AAAAPQAAQD0tAAC9AAAAPQAAgD0tAAC9AAAAPQAAQD2m//88AAAAPQAAgD2m//88AAAAPQAAQD0tAAC9AAAAvQAAQD0tAAC9AAAAPQAAgD0tAAC9AAAAvQAAgD0tAAC9AAAAPQAAQD2m//88AAAAPQAAgD2m//88AAAAvQAAQD2m//88AAAAvQAAgD2m//88AAAAPQAAQD0tAAC9AAAAPQAAQD2m//88AAAAvQAAQD0tAAC9AAAAvQAAQD2m//88AAAAPQAAgD0tAAC9AAAAvQAAgD0tAAC9AAAAPQAAgD2m//88AAAAvQAAgD2m//88AAAAvQAAgD0tAAC9AAAAvQAAQD0tAAC9AAAAvQAAQD2m//88AAAAvQAAgD2m//88AACAPwAAAAAAAAAAAACAPwAAAAAAAAAAAACAPwAAAAAAAAAAAACAPwAAAAAAAAAAAAAAAAAAYKcAAIC/AAAAAAAAYKcAAIC/AAAAAAAAYKcAAIC/AAAAAAAAYKcAAIC/AAAAAAAAACcAAIA/AAAAAAAAACcAAIA/AAAAAAAAACcAAIA/AAAAAAAAACcAAIA/AAAAAAAAgL8AAAAAAAAAAAAAgL8AAAAAAAAAAAAAgL8AAAAAAAAAAAAAgL8AAAAAAAAAAAAAgD8AAAAAAAAAAAAAgD8AAAAAAAAAAAAAgD8AAAAAAAAAAAAAgD8AAAAAAACAvwAAAAAAAAAAAACAvwAAAAAAAAAAAACAvwAAAAAAAAAAAACAvwAAAAAAAAAAAACAPgAAAAAAAAA+AAAAAAAAgD4AAIA+AAAAPgAAgD4AAIA+AAAAAAAAAAAAAAAAA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+P6qRyb2I1Pa2zsF+P6qRyb2I1Pa26dxyP5voob5q7P436dxyP5voob5q7P436dxyP5voob5q7P43AADAPgAAgD4OAAA/AAAAAAAAAD8AAIA+HQDAPgAAAAAAAMA+AACAPh0A4D5MpsI+AAAAPwAAgD4AAMA+AACAPg4AAD8AAAAAAAAAPwAAgD4dAMA+AAAAAAAAwD4AAIA+HQDgPkymwj4AAAA/AACAPg4AAD8AAAAAAADAPgAAgD4AAAA/AACAPh0AwD4AAAAAHQDgPkymwj4AAMA+AACAPgAAAD8AAIA+AADAPgAAgD4OAAA/AAAAAAAAAD8AAIA+HQDAPgAAAAAAAMA+AACAPh0A4D5MpsI+AAAAPwAAgD4AAAIAAQAAAAEAAwAEAAUABgAHAAkACAAHAAgACgALAAwADQAOABAADwAOAA8AEQASABMAFAAVABcAFgAVABYAGAAZABoAGwA="}],"accessors":[{"bufferView":0,"componentType":5126,"count":24,"max":[0.03125,0.0625,0.03124983236193657],"min":[-0.03125,0.046875,-0.03125016763806343],"type":"VEC3"},{"bufferView":1,"componentType":5126,"count":24,"max":[1,1,1],"min":[-1,-1,-1],"type":"VEC3"},{"bufferView":2,"componentType":5126,"count":24,"max":[0.25,0.25],"min":[0,0],"type":"VEC2"},{"bufferView":3,"componentType":5123,"count":36,"max":[23],"min":[0],"type":"SCALAR"},{"bufferView":4,"componentType":5126,"count":28,"max":[0.015625,0.046875,0.015624833293259144],"min":[-0.015625,-0.0555555559694767,-0.01562516763806343],"type":"VEC3"},{"bufferView":5,"componentType":5126,"count":28,"max":[0.9951447248458862,-0.09842020273208618,0.9951449632644653],"min":[-0.9951447248458862,-0.3162368834018707,-0.995144784450531],"type":"VEC3"},{"bufferView":6,"componentType":5126,"count":28,"max":[0.5000008344650269,0.38017499446868896],"min":[0.375,0],"type":"VEC2"},{"bufferView":7,"componentType":5123,"count":36,"max":[27],"min":[0],"type":"SCALAR"}],"materials":[{"pbrMetallicRoughness":{"metallicFactor":0,"roughnessFactor":1,"baseColorTexture":{"index":0}},"alphaMode":"MASK","alphaCutoff":0.05,"doubleSided":true}],"textures":[{"sampler":0,"source":0}],"samplers":[{"magFilter":9728,"minFilter":9728,"wrapS":33071,"wrapT":33071}],"images":[{"mimeType":"image/png","uri":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAAXNSR0IArs4c6QAAAE1JREFUKFNjNLH1/8/AwMBw5vBGRhAbRIP4MAAWxKsAWTVWE5AVYGOj2EcjBaIqhv/5OQUY2NlYGTi5OBm4OQQZBIVFGfjZhRh4OdgZAM0LFmnUXO/SAAAAAElFTkSuQmCC"}],"meshes":[{"primitives":[{"mode":4,"attributes":{"POSITION":0,"NORMAL":1,"TEXCOORD_0":2},"indices":3,"material":0}]},{"primitives":[{"mode":4,"attributes":{"POSITION":4,"NORMAL":5,"TEXCOORD_0":6},"indices":7,"material":0}]}]} \ No newline at end of file +{"asset":{"version":"2.0","generator":"Blockbench 4.9.2 glTF exporter"},"scenes":[{"nodes":[2],"name":"blockbench_export"}],"scene":0,"nodes":[{"name":"head","mesh":0},{"name":"pin","mesh":1},{"children":[0,1]}],"bufferViews":[{"buffer":0,"byteOffset":0,"byteLength":288,"target":34962,"byteStride":12},{"buffer":0,"byteOffset":288,"byteLength":288,"target":34962,"byteStride":12},{"buffer":0,"byteOffset":576,"byteLength":192,"target":34962,"byteStride":8},{"buffer":0,"byteOffset":768,"byteLength":72,"target":34963},{"buffer":0,"byteOffset":840,"byteLength":336,"target":34962,"byteStride":12},{"buffer":0,"byteOffset":1176,"byteLength":336,"target":34962,"byteStride":12},{"buffer":0,"byteOffset":1512,"byteLength":224,"target":34962,"byteStride":8},{"buffer":0,"byteOffset":1736,"byteLength":72,"target":34963}],"buffers":[{"byteLength":1808,"uri":"data:application/octet-stream;base64,zczMPJqZGT0Vzcy8zczMPM3MTD0Vzcy8zczMPJqZGT2FzMw8zczMPM3MTD2FzMw8zczMPJqZGT0Vzcy8zczMvJqZGT0Vzcy8zczMPM3M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AIA+HQDAPgAAAAAAAMA+AACAPh0A4D5MpsI+AAAAPwAAgD4AAAIAAQAAAAEAAwAEAAUABgAHAAkACAAHAAgACgALAAwADQAOABAADwAOAA8AEQASABMAFAAVABcAFgAVABYAGAAZABoAGwA="}],"accessors":[{"bufferView":0,"componentType":5126,"count":24,"max":[0.02500000037252903,0.05000000074505806,0.024999866262078285],"min":[-0.02500000037252903,0.03750000149011612,-0.025000134482979774],"type":"VEC3"},{"bufferView":1,"componentType":5126,"count":24,"max":[1,1,1],"min":[-1,-1,-1],"type":"VEC3"},{"bufferView":2,"componentType":5126,"count":24,"max":[0.25,0.25],"min":[0,0],"type":"VEC2"},{"bufferView":3,"componentType":5123,"count":36,"max":[23],"min":[0],"type":"SCALAR"},{"bufferView":4,"componentType":5126,"count":28,"max":[0.012500000186264515,0.03750000149011612,0.012499867007136345],"min":[-0.012500000186264515,-0.04444444552063942,-0.01250013429671526],"type":"VEC3"},{"bufferView":5,"componentType":5126,"count":28,"max":[0.9951447248458862,-0.09842020273208618,0.9951449632644653],"min":[-0.9951447248458862,-0.3162368834018707,-0.995144784450531],"type":"VEC3"},{"bufferView":6,"componentType":5126,"count":28,"max":[0.5000008344650269,0.38017499446868896],"min":[0.375,0],"type":"VEC2"},{"bufferView":7,"componentType":5123,"count":36,"max":[27],"min":[0],"type":"SCALAR"}],"materials":[{"pbrMetallicRoughness":{"metallicFactor":0,"roughnessFactor":1,"baseColorTexture":{"index":0}},"alphaMode":"MASK","alphaCutoff":0.05,"doubleSided":true}],"textures":[{"sampler":0,"source":0}],"samplers":[{"magFilter":9728,"minFilter":9728,"wrapS":33071,"wrapT":33071}],"images":[{"mimeType":"image/png","uri":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAAXNSR0IArs4c6QAAAE1JREFUKFNjNLH1/8/AwMBw5vBGRhAbRIP4MAAWxKsAWTVWE5AVYGOj2EcjBaIqhv/5OQUY2NlYGTi5OBm4OQQZBIVFGfjZhRh4OdgZAM0LFmnUXO/SAAAAAElFTkSuQmCC"}],"meshes":[{"primitives":[{"mode":4,"attributes":{"POSITION":0,"NORMAL":1,"TEXCOORD_0":2},"indices":3,"material":0}]},{"primitives":[{"mode":4,"attributes":{"POSITION":4,"NORMAL":5,"TEXCOORD_0":6},"indices":7,"material":0}]}]} \ No newline at end of file diff --git a/objects/Grid.cs b/objects/Grid.cs index c2ebad2..ea75928 100644 --- a/objects/Grid.cs +++ b/objects/Grid.cs @@ -1,7 +1,7 @@ [Tool] public partial class Grid : Area3D { - public const float StepSize = 1.0f / 16; + public const float StepSize = 0.05f; // 5cm const float Offset = 0.001f; const int ThickLineEvery = 4; @@ -65,13 +65,13 @@ public partial class Grid : Area3D mesh.SurfaceAddVertex(new(x1, Offset, y2)); // 3--2 } + _mesh = (ImmediateMesh)GetNodeOrNull("MeshInstance3D")?.Mesh; if (_mesh == null) { var meshInstance = new MeshInstance3D(); meshInstance.Mesh = _mesh = new(); - AddChild(meshInstance); - } else { + AddChild(meshInstance, true); + } else _mesh.ClearSurfaces(); - } _mesh.SurfaceBegin(Mesh.PrimitiveType.Triangles); diff --git a/objects/bolt.tscn b/objects/bolt.tscn index 29ce552..ef49552 100644 --- a/objects/bolt.tscn +++ b/objects/bolt.tscn @@ -4,8 +4,8 @@ [ext_resource type="PackedScene" uid="uid://s4esxyuwyet4" path="res://assets/models/bolt.gltf" id="2_3v163"] [sub_resource type="CylinderShape3D" id="CylinderShape3D_1yi6b"] -height = 0.125 -radius = 0.031 +height = 0.1 +radius = 0.025 [node name="Bolt" type="StaticBody3D"] collision_layer = 9 diff --git a/objects/nail.tscn b/objects/nail.tscn index 7f3cace..30e43ed 100644 --- a/objects/nail.tscn +++ b/objects/nail.tscn @@ -4,7 +4,7 @@ [ext_resource type="PackedScene" uid="uid://c1fi6jcly6cx2" path="res://assets/models/nail.gltf" id="2_nls7x"] [sub_resource type="ConvexPolygonShape3D" id="ConvexPolygonShape3D_wqf35"] -points = PackedVector3Array(-0.031, 0.063, -0.031, 0.031, 0.063, -0.031, 0.031, 0.063, 0.031, -0.031, 0.063, 0.031, 0, -0.062, 0) +points = PackedVector3Array(-0.025, 0.05, -0.025, 0.025, 0.05, -0.025, 0.025, 0.05, 0.025, -0.025, 0.05, 0.025, 0, -0.05, 0) [node name="Nail" type="StaticBody3D"] collision_layer = 9 diff --git a/scenes/workshop.tscn b/scenes/workshop.tscn index 0dc1bcd..bbf1dcb 100644 --- a/scenes/workshop.tscn +++ b/scenes/workshop.tscn @@ -1,21 +1,11 @@ -[gd_scene load_steps=19 format=3 uid="uid://bwfuet1irfi17"] +[gd_scene load_steps=11 format=3 uid="uid://bwfuet1irfi17"] [ext_resource type="Script" path="res://objects/Grid.cs" id="2_gstd0"] [ext_resource type="PackedScene" uid="uid://yvy5vvaqgxy8" path="res://objects/crate.tscn" id="2_j6a20"] -[ext_resource type="Script" path="res://objects/Item.cs" id="3_01pgc"] [ext_resource type="Texture2D" uid="uid://dts3g3ivc4stn" path="res://assets/palettes/metal.png" id="3_kvstu"] [ext_resource type="PackedScene" uid="uid://ccprmftodum0o" path="res://objects/nail.tscn" id="4_6l6v6"] [ext_resource type="PackedScene" uid="uid://bjgfm5x7a0dab" path="res://objects/bolt.tscn" id="5_r6ljd"] -[sub_resource type="BoxShape3D" id="BoxShape3D_hkc0l"] -size = Vector3(0.125, 0.125, 0.25) - -[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_foa6h"] - -[sub_resource type="BoxMesh" id="BoxMesh_3qwx3"] -material = SubResource("StandardMaterial3D_foa6h") -size = Vector3(0.125, 0.125, 0.25) - [sub_resource type="BoxShape3D" id="BoxShape3D_vkl3b"] size = Vector3(2, 0.1, 1) @@ -25,20 +15,6 @@ size = Vector3(2, 0.1, 1) [sub_resource type="BoxMesh" id="BoxMesh_efbik"] size = Vector3(0.1, 0.9, 0.1) -[sub_resource type="BoxShape3D" id="BoxShape3D_dvxhj"] -size = Vector3(0.063, 0.063, 0.25) - -[sub_resource type="BoxMesh" id="BoxMesh_hlein"] -material = SubResource("StandardMaterial3D_foa6h") -size = Vector3(0.063, 0.063, 0.25) - -[sub_resource type="BoxShape3D" id="BoxShape3D_wh54f"] -size = Vector3(0.188, 0.063, 0.75) - -[sub_resource type="BoxMesh" id="BoxMesh_pejsc"] -material = SubResource("StandardMaterial3D_foa6h") -size = Vector3(0.188, 0.063, 0.75) - [sub_resource type="WorldBoundaryShape3D" id="WorldBoundaryShape3D_5erfn"] [sub_resource type="PlaneMesh" id="PlaneMesh_tg4vq"] @@ -83,63 +59,31 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0) collision_layer = 8 collision_mask = 0 script = ExtResource("2_gstd0") -GridSize = Vector2i(30, 14) +GridSize = Vector2i(38, 18) [node name="Nail" parent="Table/Grid" instance=ExtResource("4_6l6v6")] -transform = Transform3D(-4.37114e-08, -1, -4.37114e-08, 0, -4.37114e-08, 1, -1, 4.37114e-08, 1.91069e-15, -0.745874, 0.0351096, 0.218623) +transform = Transform3D(-4.37114e-08, -1, -4.37114e-08, 0, -4.37114e-08, 1, -1, 4.37114e-08, 1.91069e-15, -0.75, 0.025, 0.225) [node name="Nail2" parent="Table/Grid" instance=ExtResource("4_6l6v6")] -transform = Transform3D(1.31134e-07, 1, 4.37114e-08, 0, -4.37114e-08, 1, 1, -1.31134e-07, -5.73206e-15, -0.746914, 0.0351096, 0.160497) +transform = Transform3D(1.31134e-07, 1, 4.37114e-08, 0, -4.37114e-08, 1, 1, -1.31134e-07, -5.73206e-15, -0.75, 0.025, 0.175) [node name="Nail3" parent="Table/Grid" instance=ExtResource("4_6l6v6")] -transform = Transform3D(-4.37114e-08, -1, -4.37114e-08, 0, -4.37114e-08, 1, -1, 4.37114e-08, 1.91069e-15, -0.749779, 0.0351096, 0.0935802) +transform = Transform3D(-4.37114e-08, -1, -4.37114e-08, 0, -4.37114e-08, 1, -1, 4.37114e-08, 1.91069e-15, -0.75, 0.025, 0.125) [node name="Nail4" parent="Table/Grid" instance=ExtResource("4_6l6v6")] -transform = Transform3D(1.31134e-07, 1, 4.37114e-08, 0, -4.37114e-08, 1, 1, -1.31134e-07, -5.73206e-15, -0.753094, 0.0351096, 0.0316732) +transform = Transform3D(1.31134e-07, 1, 4.37114e-08, 0, -4.37114e-08, 1, 1, -1.31134e-07, -5.73206e-15, -0.75, 0.025, 0.075) [node name="Nail5" parent="Table/Grid" instance=ExtResource("4_6l6v6")] -transform = Transform3D(-4.37114e-08, -1, -4.37114e-08, 0, -4.37114e-08, 1, -1, 4.37114e-08, 1.91069e-15, -0.750168, 0.0351096, -0.0270133) +transform = Transform3D(-4.37114e-08, -1, -4.37114e-08, 0, -4.37114e-08, 1, -1, 4.37114e-08, 1.91069e-15, -0.75, 0.025, 0.025) [node name="Bolt" parent="Table/Grid" instance=ExtResource("5_r6ljd")] -transform = Transform3D(1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, -0.0255985, 0.0359391, 0.315234) +transform = Transform3D(1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, -0.025, 0.025, 0.3) [node name="Bolt2" parent="Table/Grid" instance=ExtResource("5_r6ljd")] -transform = Transform3D(-1, 8.74228e-08, 3.82137e-15, 0, -4.37114e-08, 1, 8.74228e-08, 1, 4.37114e-08, -0.0892183, 0.0359391, 0.315234) +transform = Transform3D(-1, 8.74228e-08, 3.82137e-15, 0, -4.37114e-08, 1, 8.74228e-08, 1, 4.37114e-08, 0.025, 0.025, 0.3) [node name="Bolt3" parent="Table/Grid" instance=ExtResource("5_r6ljd")] -transform = Transform3D(1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, -0.150296, 0.0359391, 0.315234) - -[node name="SmallBox" type="StaticBody3D" parent="Table/Grid"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.43938, 0.0673701, 0) -collision_layer = 9 -collision_mask = 0 -script = ExtResource("3_01pgc") -Size = Vector3i(2, 2, 4) - -[node name="CollisionShape3D" type="CollisionShape3D" parent="Table/Grid/SmallBox"] -shape = SubResource("BoxShape3D_hkc0l") - -[node name="Model" type="Node3D" parent="Table/Grid/SmallBox"] - -[node name="MeshInstance3D" type="MeshInstance3D" parent="Table/Grid/SmallBox/Model"] -mesh = SubResource("BoxMesh_3qwx3") -skeleton = NodePath("../..") - -[node name="SmallBox2" type="StaticBody3D" parent="Table/Grid"] -transform = Transform3D(-4.37114e-08, 0, -1, 0, 1, 0, 1, 0, -4.37114e-08, 0.251316, 0.0673701, 0.127615) -collision_layer = 9 -collision_mask = 0 -script = ExtResource("3_01pgc") -Size = Vector3i(2, 2, 4) - -[node name="CollisionShape3D" type="CollisionShape3D" parent="Table/Grid/SmallBox2"] -shape = SubResource("BoxShape3D_hkc0l") - -[node name="Model" type="Node3D" parent="Table/Grid/SmallBox2"] - -[node name="MeshInstance3D" type="MeshInstance3D" parent="Table/Grid/SmallBox2/Model"] -mesh = SubResource("BoxMesh_3qwx3") -skeleton = NodePath("../..") +transform = Transform3D(1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 0.075, 0.025, 0.3) [node name="CollisionShape3D" type="CollisionShape3D" parent="Table"] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.95, 0) @@ -179,120 +123,7 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.0999999, 0) collision_layer = 8 collision_mask = 0 script = ExtResource("2_gstd0") -GridSize = Vector2i(30, 14) - -[node name="SmallBox3" type="StaticBody3D" parent="Table2/Grid"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.717982, 0.0335231, -0.120977) -collision_layer = 9 -collision_mask = 0 -script = ExtResource("3_01pgc") -Size = Vector3i(1, 1, 4) - -[node name="CollisionShape3D" type="CollisionShape3D" parent="Table2/Grid/SmallBox3"] -shape = SubResource("BoxShape3D_dvxhj") - -[node name="Model" type="Node3D" parent="Table2/Grid/SmallBox3"] - -[node name="MeshInstance3D" type="MeshInstance3D" parent="Table2/Grid/SmallBox3/Model"] -mesh = SubResource("BoxMesh_hlein") -skeleton = NodePath("../..") - -[node name="SmallBox4" type="StaticBody3D" parent="Table2/Grid"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.591133, 0.0335231, -0.120977) -collision_layer = 9 -collision_mask = 0 -script = ExtResource("3_01pgc") -Size = Vector3i(1, 1, 4) - -[node name="CollisionShape3D" type="CollisionShape3D" parent="Table2/Grid/SmallBox4"] -shape = SubResource("BoxShape3D_dvxhj") - -[node name="Model" type="Node3D" parent="Table2/Grid/SmallBox4"] - -[node name="MeshInstance3D" type="MeshInstance3D" parent="Table2/Grid/SmallBox4/Model"] -mesh = SubResource("BoxMesh_hlein") -skeleton = NodePath("../..") - -[node name="SmallBox5" type="StaticBody3D" parent="Table2/Grid"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.466087, 0.0335231, -0.120977) -collision_layer = 9 -collision_mask = 0 -script = ExtResource("3_01pgc") -Size = Vector3i(1, 1, 4) - -[node name="CollisionShape3D" type="CollisionShape3D" parent="Table2/Grid/SmallBox5"] -shape = SubResource("BoxShape3D_dvxhj") - -[node name="Model" type="Node3D" parent="Table2/Grid/SmallBox5"] - -[node name="MeshInstance3D" type="MeshInstance3D" parent="Table2/Grid/SmallBox5/Model"] -mesh = SubResource("BoxMesh_hlein") -skeleton = NodePath("../..") - -[node name="SmallBox6" type="StaticBody3D" parent="Table2/Grid"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.342431, 0.0335231, -0.120977) -collision_layer = 9 -collision_mask = 0 -script = ExtResource("3_01pgc") -Size = Vector3i(1, 1, 4) - -[node name="CollisionShape3D" type="CollisionShape3D" parent="Table2/Grid/SmallBox6"] -shape = SubResource("BoxShape3D_dvxhj") - -[node name="Model" type="Node3D" parent="Table2/Grid/SmallBox6"] - -[node name="MeshInstance3D" type="MeshInstance3D" parent="Table2/Grid/SmallBox6/Model"] -mesh = SubResource("BoxMesh_hlein") -skeleton = NodePath("../..") - -[node name="SmallBox7" type="StaticBody3D" parent="Table2/Grid"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.217693, 0.0335231, -0.120977) -collision_layer = 9 -collision_mask = 0 -script = ExtResource("3_01pgc") -Size = Vector3i(1, 1, 4) - -[node name="CollisionShape3D" type="CollisionShape3D" parent="Table2/Grid/SmallBox7"] -shape = SubResource("BoxShape3D_dvxhj") - -[node name="Model" type="Node3D" parent="Table2/Grid/SmallBox7"] - -[node name="MeshInstance3D" type="MeshInstance3D" parent="Table2/Grid/SmallBox7/Model"] -mesh = SubResource("BoxMesh_hlein") -skeleton = NodePath("../..") - -[node name="SmallBox8" type="StaticBody3D" parent="Table2/Grid"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.0920233, 0.0335231, -0.120977) -collision_layer = 9 -collision_mask = 0 -script = ExtResource("3_01pgc") -Size = Vector3i(1, 1, 4) - -[node name="CollisionShape3D" type="CollisionShape3D" parent="Table2/Grid/SmallBox8"] -shape = SubResource("BoxShape3D_dvxhj") - -[node name="Model" type="Node3D" parent="Table2/Grid/SmallBox8"] - -[node name="MeshInstance3D" type="MeshInstance3D" parent="Table2/Grid/SmallBox8/Model"] -mesh = SubResource("BoxMesh_hlein") -skeleton = NodePath("../..") - -[node name="SmallBox9" type="StaticBody3D" parent="Table2/Grid"] -transform = Transform3D(-4.37114e-08, 0, -1, 1, -4.37114e-08, -4.37114e-08, -4.37114e-08, -1, 1.91069e-15, 0.314445, 0.0927377, 0.155108) -collision_layer = 9 -collision_mask = 0 -script = ExtResource("3_01pgc") -Size = Vector3i(3, 1, 12) - -[node name="CollisionShape3D" type="CollisionShape3D" parent="Table2/Grid/SmallBox9"] -shape = SubResource("BoxShape3D_wh54f") - -[node name="Model" type="Node3D" parent="Table2/Grid/SmallBox9"] - -[node name="MeshInstance3D" type="MeshInstance3D" parent="Table2/Grid/SmallBox9/Model"] -transform = Transform3D(1, 0, -8.35187e-23, 0, 1, 0, -8.35187e-23, 0, 1, 0, 0, 0) -mesh = SubResource("BoxMesh_pejsc") -skeleton = NodePath("../..") +GridSize = Vector2i(38, 18) [node name="CollisionShape3D" type="CollisionShape3D" parent="Table2"] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.0499997, 0)