77 lines
3.2 KiB
Plaintext
77 lines
3.2 KiB
Plaintext
[gd_scene format=3 uid="uid://c4skbeito3suj"]
|
|
|
|
[ext_resource type="ArrayMesh" uid="uid://b5ok22cbta76k" path="res://Assets/Models/ISwitchBase.obj" id="1_0yoy5"]
|
|
[ext_resource type="Script" uid="uid://bnusj72egf6sw" path="res://Objects/Scripts/ISwitch.gd" id="1_b84el"]
|
|
[ext_resource type="Material" uid="uid://ckdlnf7tbmvnf" path="res://Objects/BaseMaterial.tres" id="2_85clc"]
|
|
[ext_resource type="ArrayMesh" uid="uid://bdjr38o7iuajh" path="res://Assets/Models/ISwitchCap.obj" id="2_b84el"]
|
|
[ext_resource type="AudioStream" uid="uid://3u4ofv7lf7oq" path="res://Assets/switch.mp3" id="5_85clc"]
|
|
|
|
[sub_resource type="BoxShape3D" id="BoxShape3D_b2608"]
|
|
size = Vector3(0.17260742, 0.42382813, 0.15209961)
|
|
|
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_vks8t"]
|
|
albedo_color = Color(0.5890956, 0.5890956, 0.5890956, 1)
|
|
metallic = 1.0
|
|
metallic_specular = 0.0
|
|
roughness = 0.27
|
|
|
|
[sub_resource type="Animation" id="Animation_i8co2"]
|
|
length = 0.001
|
|
tracks/0/type = "rotation_3d"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("StaticBody3D")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = PackedFloat32Array(0, 1, 0, 0, 0, 1)
|
|
|
|
[sub_resource type="Animation" id="Animation_0yoy5"]
|
|
resource_name = "interact"
|
|
length = 0.033333335
|
|
tracks/0/type = "rotation_3d"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("StaticBody3D")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = PackedFloat32Array(0, 1, -0.21644, 0, 0, 0.976296, 0.033333335, 1, 0.21644, 0, 0, 0.976296)
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_b84el"]
|
|
_data = {
|
|
&"RESET": SubResource("Animation_i8co2"),
|
|
&"interact": SubResource("Animation_0yoy5")
|
|
}
|
|
|
|
[node name="ISwitch" type="Node3D" unique_id=308040824]
|
|
script = ExtResource("1_b84el")
|
|
|
|
[node name="MeshInstance3D" type="MeshInstance3D" parent="." unique_id=1157301497]
|
|
transform = Transform3D(0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, 0, 0, 0)
|
|
material_override = ExtResource("2_85clc")
|
|
mesh = ExtResource("1_0yoy5")
|
|
|
|
[node name="StaticBody3D" type="StaticBody3D" parent="." unique_id=1975278460]
|
|
transform = Transform3D(0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, 0, 0.22, 0)
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="StaticBody3D" unique_id=2033531582]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.001953125, 0.158194, -0.013366684)
|
|
shape = SubResource("BoxShape3D_b2608")
|
|
|
|
[node name="MeshInstance3D" type="MeshInstance3D" parent="StaticBody3D" unique_id=121790667]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.44, 0)
|
|
mesh = ExtResource("2_b84el")
|
|
surface_material_override/0 = SubResource("StandardMaterial3D_vks8t")
|
|
surface_material_override/1 = SubResource("StandardMaterial3D_vks8t")
|
|
surface_material_override/2 = SubResource("StandardMaterial3D_vks8t")
|
|
surface_material_override/3 = SubResource("StandardMaterial3D_vks8t")
|
|
surface_material_override/4 = SubResource("StandardMaterial3D_vks8t")
|
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="." unique_id=687151194]
|
|
libraries/ = SubResource("AnimationLibrary_b84el")
|
|
|
|
[node name="Sound" type="AudioStreamPlayer3D" parent="." unique_id=439972111]
|
|
stream = ExtResource("5_85clc")
|
|
volume_db = -20.0
|
|
|
|
[connection signal="input_event" from="StaticBody3D" to="." method="_on_static_body_3d_input_event"]
|