Add nail and bolt items

main
copygirl 11 months ago
parent 4a3495faee
commit eb3417e315
  1. 1
      assets/models/bolt.bbmodel
  2. 1
      assets/models/bolt.gltf
  3. 34
      assets/models/bolt.gltf.import
  4. BIN
      assets/models/bolt_0.png
  5. 34
      assets/models/bolt_0.png.import
  6. 1
      assets/models/nail.bbmodel
  7. 1
      assets/models/nail.gltf
  8. 34
      assets/models/nail.gltf.import
  9. BIN
      assets/models/nail_0.png
  10. 34
      assets/models/nail_0.png.import
  11. 19
      objects/bolt.tscn
  12. 18
      objects/nail.tscn
  13. 28
      scenes/workshop.tscn

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -0,0 +1,34 @@
[remap]
importer="scene"
importer_version=1
type="PackedScene"
uid="uid://s4esxyuwyet4"
path="res://.godot/imported/bolt.gltf-c5880e33b829ba5a6d115cb45b177f0b.scn"
[deps]
source_file="res://assets/models/bolt.gltf"
dest_files=["res://.godot/imported/bolt.gltf-c5880e33b829ba5a6d115cb45b177f0b.scn"]
[params]
nodes/root_type=""
nodes/root_name=""
nodes/apply_root_scale=true
nodes/root_scale=1.0
meshes/ensure_tangents=true
meshes/generate_lods=true
meshes/create_shadow_meshes=true
meshes/light_baking=1
meshes/lightmap_texel_size=0.2
meshes/force_disable_compression=false
skins/use_named_skins=true
animation/import=true
animation/fps=30
animation/trimming=false
animation/remove_immutable_tracks=true
import_script/path=""
_subresources={}
gltf/naming_version=1
gltf/embedded_image_handling=1

Binary file not shown.

After

Width:  |  Height:  |  Size: 154 B

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://bvr7ie5c0iirr"
path="res://.godot/imported/bolt_0.png-a9880fcead6b67ec849b2be43b248875.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/models/bolt_0.png"
dest_files=["res://.godot/imported/bolt_0.png-a9880fcead6b67ec849b2be43b248875.ctex"]
[params]
compress/mode=0
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

@ -0,0 +1 @@
{"meta":{"format_version":"4.9","model_format":"free","box_uv":false},"name":"nail","model_identifier":"","visible_box":[1,1,0],"variable_placeholders":"","variable_placeholder_buttons":[],"timeline_setups":[],"unhandled_root_fields":{},"resolution":{"width":8,"height":8},"elements":[{"name":"head","color":2,"origin":[0,0,0],"rotation":[0,0,0],"visibility":true,"locked":false,"render_order":"default","allow_mirror_modeling":true,"vertices":{"w25F":[0.4999999999999987,0.75,-0.5000026694232708],"Vf2t":[0.4999999999999987,0.75,0.49999733057672757],"Zldj":[0.4999999999999987,1,-0.5000026694232715],"Dn9M":[0.4999999999999987,1,0.49999733057672713],"SAKY":[-0.4999999999999987,0.75,-0.5000026694232708],"U2LG":[-0.4999999999999987,1,-0.5000026694232715],"aFDh":[-0.4999999999999987,0.75,0.49999733057672757],"907z":[-0.4999999999999987,1,0.49999733057672713]},"faces":{"9Ab0JvTy":{"uv":{"w25F":[2,0],"Zldj":[1,0],"Vf2t":[2,2],"Dn9M":[1,2]},"vertices":["w25F","Zldj","Vf2t","Dn9M"],"texture":0},"ubeI6z4q":{"uv":{"w25F":[2,0],"SAKY":[0,0],"Zldj":[2,1],"U2LG":[0,1]},"vertices":["w25F","SAKY","Zldj","U2LG"],"texture":0},"UKeDxmrT":{"uv":{"Vf2t":[2,2],"Dn9M":[2,1],"aFDh":[0,2],"907z":[0,1]},"vertices":["Vf2t","Dn9M","aFDh","907z"],"texture":0},"MTUEm1Yz":{"uv":{"w25F":[2,2.220446049250313e-16],"Vf2t":[2,2],"SAKY":[0,0],"aFDh":[0,2]},"vertices":["w25F","Vf2t","SAKY","aFDh"],"texture":0},"FL7ubSlH":{"uv":{"Zldj":[2,0],"U2LG":[0,0],"Dn9M":[2,2],"907z":[0,2]},"vertices":["Zldj","U2LG","Dn9M","907z"],"texture":0},"tTgro36z":{"uv":{"U2LG":[0,0],"SAKY":[1,0],"aFDh":[1,2],"907z":[0,2]},"vertices":["U2LG","SAKY","aFDh","907z"],"texture":0}},"type":"mesh","uuid":"e2d2394f-13c7-f5ac-31a0-aa941e9bc780"},{"name":"pin","color":2,"origin":[0,0,0],"rotation":[0,0,0],"visibility":true,"locked":false,"render_order":"default","allow_mirror_modeling":true,"vertices":{"2Pur":[7.703719777548942e-33,-0.8888888888888875,-0.000002669423271034631],"kObA":[-0.24999999999999936,0.75,-0.25000266942327143],"DOBZ":[-0.12499699689881903,-0.5139099105971506,-0.12499966632209059],"TNAU":[-0.24999999999999936,0.75,0.24999733057672735],"Cz6n":[-0.12500300310117993,-0.5138678671806249,0.1250003336779082],"2ohg":[0.24999999999999936,0.75,-0.25000266942327143],"LSHZ":[0.12499699689881903,-0.5139099105971506,-0.12499966632209059],"LtLb":[0.24999999999999936,0.75,0.24999733057672735],"WeSR":[0.12500300310117993,-0.5138678671806249,0.1250003336779082]},"faces":{"0H774Xer":{"uv":{"LSHZ":[3,2],"kObA":[4.000006864231269,0],"DOBZ":[4,2],"2ohg":[3.000006864231269,0]},"vertices":["LSHZ","kObA","DOBZ","2ohg"],"texture":0},"luGb3OW3":{"uv":{"LSHZ":[3,2],"2Pur":[3.5000068642312696,3.0414000000000003],"DOBZ":[4,2]},"vertices":["LSHZ","2Pur","DOBZ"],"texture":0},"iHuit6Lh":{"uv":{"Cz6n":[3,2],"LtLb":[4.000006864231269,0],"WeSR":[4,2],"TNAU":[3.000006864231269,0]},"vertices":["Cz6n","LtLb","WeSR","TNAU"],"texture":0},"gQjPRuLO":{"uv":{"Cz6n":[3,2],"2Pur":[3.5000068642312696,3.0414000000000003],"WeSR":[4,2]},"vertices":["Cz6n","2Pur","WeSR"],"texture":0},"GsY3sjLN":{"uv":{"kObA":[4.000006864231269,0],"Cz6n":[3,2],"DOBZ":[4,2],"TNAU":[3.000006864231269,0]},"vertices":["kObA","Cz6n","DOBZ","TNAU"],"texture":0},"z9oOwaXz":{"uv":{"2Pur":[3.5000068642312696,3.0414000000000003],"Cz6n":[3,2],"DOBZ":[4,2]},"vertices":["2Pur","Cz6n","DOBZ"],"texture":0},"e6lH1Wr3":{"uv":{"WeSR":[3,2],"2ohg":[4.000006864231269,0],"LSHZ":[4,2],"LtLb":[3.000006864231269,0]},"vertices":["WeSR","2ohg","LSHZ","LtLb"],"texture":0},"h7SmNJTG":{"uv":{"WeSR":[3,2],"2Pur":[3.5000068642312696,3.0414000000000003],"LSHZ":[4,2]},"vertices":["WeSR","2Pur","LSHZ"],"texture":0}},"type":"mesh","uuid":"6ac66bdc-e7f1-c423-75b0-49b924d336e1"}],"outliner":["e2d2394f-13c7-f5ac-31a0-aa941e9bc780","6ac66bdc-e7f1-c423-75b0-49b924d336e1"],"textures":[{"path":"/home/copygirl/projects/godot/Inventory2/assets/models/nail_0.png","name":"nail_0.png","folder":"block","namespace":"","id":"0","width":8,"height":8,"uv_width":8,"uv_height":8,"particle":false,"layers_enabled":false,"sync_to_project":"","render_mode":"default","render_sides":"auto","frame_time":1,"frame_order_type":"loop","frame_order":"","frame_interpolate":false,"visible":true,"internal":true,"saved":true,"uuid":"720a9538-a5a0-6514-f7b0-bec315585479","relative_path":"../nail_0.png","source":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAAXNSR0IArs4c6QAAAE1JREFUKFNjNLH1/8/AwMBw5vBGRhAbRIP4MAAWxKsAWTVWE5AVYGOj2EcjBaIqhv/5OQUY2NlYGTi5OBm4OQQZBIVFGfjZhRh4OdgZAM0LFmnUXO/SAAAAAElFTkSuQmCC"}]}

File diff suppressed because one or more lines are too long

@ -0,0 +1,34 @@
[remap]
importer="scene"
importer_version=1
type="PackedScene"
uid="uid://c1fi6jcly6cx2"
path="res://.godot/imported/nail.gltf-02a236d6408f0fa1ddda24887fd83967.scn"
[deps]
source_file="res://assets/models/nail.gltf"
dest_files=["res://.godot/imported/nail.gltf-02a236d6408f0fa1ddda24887fd83967.scn"]
[params]
nodes/root_type=""
nodes/root_name=""
nodes/apply_root_scale=true
nodes/root_scale=1.0
meshes/ensure_tangents=true
meshes/generate_lods=true
meshes/create_shadow_meshes=true
meshes/light_baking=1
meshes/lightmap_texel_size=0.2
meshes/force_disable_compression=false
skins/use_named_skins=true
animation/import=true
animation/fps=30
animation/trimming=false
animation/remove_immutable_tracks=true
import_script/path=""
_subresources={}
gltf/naming_version=1
gltf/embedded_image_handling=1

Binary file not shown.

After

Width:  |  Height:  |  Size: 124 B

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://b1c3md1ic76aj"
path="res://.godot/imported/nail_0.png-72515e1e9de1f2e7dd00b34e9def43d0.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/models/nail_0.png"
dest_files=["res://.godot/imported/nail_0.png-72515e1e9de1f2e7dd00b34e9def43d0.ctex"]
[params]
compress/mode=0
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

@ -0,0 +1,19 @@
[gd_scene load_steps=4 format=3 uid="uid://bjgfm5x7a0dab"]
[ext_resource type="Script" path="res://objects/Item.cs" id="1_43oqr"]
[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
[node name="Bolt" type="StaticBody3D"]
collision_layer = 9
collision_mask = 0
script = ExtResource("1_43oqr")
Size = Vector3i(1, 2, 1)
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
shape = SubResource("CylinderShape3D_1yi6b")
[node name="Model" parent="." instance=ExtResource("2_3v163")]

@ -0,0 +1,18 @@
[gd_scene load_steps=4 format=3 uid="uid://ccprmftodum0o"]
[ext_resource type="Script" path="res://objects/Item.cs" id="1_6pcd7"]
[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)
[node name="Nail" type="StaticBody3D"]
collision_layer = 9
collision_mask = 0
script = ExtResource("1_6pcd7")
Size = Vector3i(1, 2, 1)
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
shape = SubResource("ConvexPolygonShape3D_wqf35")
[node name="Model" parent="." instance=ExtResource("2_nls7x")]

@ -1,9 +1,11 @@
[gd_scene load_steps=17 format=3 uid="uid://bwfuet1irfi17"] [gd_scene load_steps=19 format=3 uid="uid://bwfuet1irfi17"]
[ext_resource type="Script" path="res://objects/Grid.cs" id="2_gstd0"] [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="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="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="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"] [sub_resource type="BoxShape3D" id="BoxShape3D_hkc0l"]
size = Vector3(0.125, 0.125, 0.25) size = Vector3(0.125, 0.125, 0.25)
@ -83,6 +85,30 @@ collision_mask = 0
script = ExtResource("2_gstd0") script = ExtResource("2_gstd0")
GridSize = Vector2i(30, 14) GridSize = Vector2i(30, 14)
[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)
[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)
[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)
[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)
[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)
[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)
[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)
[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"] [node name="SmallBox" type="StaticBody3D" parent="Table/Grid"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.43938, 0.0673701, 0) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.43938, 0.0673701, 0)
collision_layer = 9 collision_layer = 9

Loading…
Cancel
Save