Made and scripted a generator key that modifies the variable to be able to turn on the generator using the panel

This commit is contained in:
2024-07-17 21:22:04 -05:00
parent 1a6a94d02b
commit abc319836f
5 changed files with 77 additions and 0 deletions

18
Assets/Objects/Key.tscn Normal file
View File

@ -0,0 +1,18 @@
[gd_scene load_steps=4 format=3 uid="uid://caej6l75lgmkp"]
[ext_resource type="Script" path="res://Assets/scripts/generator_key.gd" id="1_biiwx"]
[ext_resource type="PackedScene" uid="uid://byuejbs64ow32" path="res://Blender Files/Objects/Key.blend" id="1_kvtkd"]
[sub_resource type="BoxShape3D" id="BoxShape3D_e8fvw"]
size = Vector3(0.0746536, 0.0574341, 0.116943)
[node name="StaticBody3D" type="StaticBody3D"]
collision_layer = 4
script = ExtResource("1_biiwx")
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.000476837, 0.0148621, -0.0220947)
shape = SubResource("BoxShape3D_e8fvw")
[node name="Key" parent="." instance=ExtResource("1_kvtkd")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.00731428, 0)