Lid crane and lever
This commit is contained in:
+9
-12
@@ -2,20 +2,16 @@
|
||||
|
||||
[ext_resource type="Script" uid="uid://de5n8vxvigaic" path="res://prefabs/lever.gd" id="1_7d20a"]
|
||||
[ext_resource type="PackedScene" uid="uid://be7u1kn41g2ww" path="res://addons/interaction/interactable.tscn" id="1_h71ec"]
|
||||
[ext_resource type="ArrayMesh" uid="uid://bwsi1jdicf41x" path="res://models/lever_base.res" id="3_haun4"]
|
||||
[ext_resource type="ArrayMesh" uid="uid://c38wl6xp3k66q" path="res://models/lever.res" id="4_jevyl"]
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_h71ec"]
|
||||
size = Vector3(1, 1, 0.2)
|
||||
|
||||
[sub_resource type="BoxMesh" id="BoxMesh_ib36p"]
|
||||
size = Vector3(0.405, 0.61, 0.09)
|
||||
|
||||
[sub_resource type="BoxMesh" id="BoxMesh_haun4"]
|
||||
size = Vector3(0.1, 0.1, 0.5)
|
||||
|
||||
[node name="Lever" type="Node3D"]
|
||||
script = ExtResource("1_7d20a")
|
||||
upPosition = -45.0
|
||||
downPosition = 45.0
|
||||
upPosition = -60.0
|
||||
downPosition = 60.0
|
||||
|
||||
[node name="Interactable" parent="." instance=ExtResource("1_h71ec")]
|
||||
|
||||
@@ -25,16 +21,17 @@ shape = SubResource("BoxShape3D_h71ec")
|
||||
[node name="Visuals" type="Node3D" parent="."]
|
||||
|
||||
[node name="VisualBase" type="Node3D" parent="Visuals"]
|
||||
transform = Transform3D(-4.371139e-08, 0, -1, 0, 1, 0, 1, 0, -4.371139e-08, 0, 0, 0)
|
||||
|
||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="Visuals/VisualBase"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0.029395461)
|
||||
mesh = SubResource("BoxMesh_ib36p")
|
||||
mesh = ExtResource("3_haun4")
|
||||
|
||||
[node name="VisualLever" type="Node3D" parent="Visuals"]
|
||||
transform = Transform3D(1, 0, 0, 0, 0.70710677, 0.70710677, 0, -0.70710677, 0.70710677, 0, 0, 0.04011269)
|
||||
transform = Transform3D(1, 0, 0, 0, 0.49999994, 0.8660254, 0, -0.8660254, 0.49999994, 0, 0, 0.04011269)
|
||||
|
||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="Visuals/VisualLever"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.00422913, 0.22320583)
|
||||
mesh = SubResource("BoxMesh_haun4")
|
||||
transform = Transform3D(-4.371139e-08, 1, 0, 8.940697e-08, 5.3290705e-15, 1, 1, 4.371139e-08, -8.940697e-08, 0, 0, 0)
|
||||
mesh = ExtResource("4_jevyl")
|
||||
|
||||
[connection signal="on_hit" from="Interactable" to="." method="_on_interactable_on_hit"]
|
||||
|
||||
Reference in New Issue
Block a user