You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.7 KiB
38 lines
1.7 KiB
[gd_scene load_steps=6 format=3 uid="uid://cv3qpo5lfrchn"]
|
|
|
|
[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)
|
|
|
|
[node name="Lever" type="Node3D"]
|
|
script = ExtResource("1_7d20a")
|
|
upPosition = -60.0
|
|
downPosition = 60.0
|
|
|
|
[node name="Interactable" parent="." instance=ExtResource("1_h71ec")]
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="Interactable"]
|
|
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 = ExtResource("3_haun4")
|
|
|
|
[node name="VisualLever" type="Node3D" parent="Visuals"]
|
|
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(-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"]
|