From 7c200b8dcba0912246c113efe688438217d6b935 Mon Sep 17 00:00:00 2001 From: Martin Felis Date: Mon, 30 Sep 2024 22:58:42 +0200 Subject: [PATCH] Fence fortified now properly centered in build mode. --- assets/items/fence_fortified.tscn | 17 ++++++++++------- data/items/fence_fortified.tres | 1 + 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/assets/items/fence_fortified.tscn b/assets/items/fence_fortified.tscn index a9ae53e..45856bc 100644 --- a/assets/items/fence_fortified.tscn +++ b/assets/items/fence_fortified.tscn @@ -2,13 +2,16 @@ [ext_resource type="PackedScene" uid="uid://cg5cy35mk8nba" path="res://assets/3rdparty/kenney/survival-kit/Models/fence-fortified.glb" id="1_mg881"] -[sub_resource type="BoxShape3D" id="BoxShape3D_plfn4"] -size = Vector3(0.51, 0.51, 0.1) +[sub_resource type="BoxShape3D" id="BoxShape3D_hk10f"] +size = Vector3(0.487061, 0.506958, 0.0766602) -[node name="fence-fortified" instance=ExtResource("1_mg881")] +[node name="fence_fortified" type="Node3D"] -[node name="StaticBody3D" type="StaticBody3D" parent="." index="1"] +[node name="fence-fortified2" parent="." instance=ExtResource("1_mg881")] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0.227905) -[node name="CollisionShape3D" type="CollisionShape3D" parent="StaticBody3D" index="0"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.25, -0.226656) -shape = SubResource("BoxShape3D_plfn4") +[node name="StaticBody3D" type="StaticBody3D" parent="."] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="StaticBody3D"] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.00012207, 0.265316, -0.00170898) +shape = SubResource("BoxShape3D_hk10f") diff --git a/data/items/fence_fortified.tres b/data/items/fence_fortified.tres index 4f56b4c..f7bd639 100644 --- a/data/items/fence_fortified.tres +++ b/data/items/fence_fortified.tres @@ -12,3 +12,4 @@ icon = ExtResource("1_hyv8l") max_stack_size = 64 is_tool = false is_buildable = true +tool_action = 0