immersive-home/app/content/entities/switch/switch.tscn

40 lines
1.2 KiB
Plaintext
Raw Normal View History

[gd_scene load_steps=7 format=3 uid="uid://cscl5k7lhopj5"]
2023-11-05 16:16:07 +02:00
[ext_resource type="Script" path="res://content/entities/switch/switch.gd" id="1_8ffhi"]
2023-11-28 16:14:21 +02:00
[ext_resource type="Texture2D" uid="uid://br3p0c2foputg" path="res://assets/materials/swich_on.png" id="1_w68gw"]
[ext_resource type="Texture2D" uid="uid://co2ishj2hx57p" path="res://assets/materials/switch_off.png" id="2_86ba1"]
2023-11-06 16:39:53 +02:00
[ext_resource type="Script" path="res://content/functions/movable.gd" id="4_6xr03"]
[sub_resource type="SphereShape3D" id="SphereShape3D_ukj14"]
2023-12-09 23:50:23 +02:00
radius = 0.0482081
[sub_resource type="SpriteFrames" id="SpriteFrames_ldpuo"]
animations = [{
"frames": [{
"duration": 1.0,
2024-04-18 13:35:57 +03:00
"texture": ExtResource("2_86ba1")
}, {
"duration": 1.0,
2024-04-18 13:35:57 +03:00
"texture": ExtResource("1_w68gw")
}],
"loop": true,
"name": &"default",
"speed": 5.0
}]
2024-04-18 13:35:57 +03:00
[node name="Switch" type="StaticBody3D"]
2023-11-28 16:14:21 +02:00
collision_mask = 0
script = ExtResource("1_8ffhi")
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
shape = SubResource("SphereShape3D_ukj14")
[node name="Icon" type="AnimatedSprite3D" parent="."]
2023-12-09 23:50:23 +02:00
pixel_size = 0.0002
billboard = 1
sprite_frames = SubResource("SpriteFrames_ldpuo")
2023-11-06 16:39:53 +02:00
[node name="Movable" type="Node" parent="."]
script = ExtResource("4_6xr03")
2024-05-01 18:42:38 +03:00
resizable = true