Skip to content
Snippets Groups Projects
Select Git revision
  • 51d73838c824713a32bdd11b0c85cff3b34f113c
  • main default protected
  • godot4
3 results

Switch.tscn

Blame
  • Forked from IVMI / Ivmi-Builder
    54 commits behind the upstream repository.
    Switch.tscn 2.24 KiB
    [gd_scene load_steps=11 format=3 uid="uid://vxv4fyjy7mf1"]
    
    [ext_resource type="Script" path="res://addons/ivmi-builder/techniques/control/Switch/Switch.gd" id="1"]
    
    [sub_resource type="BoxMesh" id="1"]
    
    [sub_resource type="BoxMesh" id="2"]
    
    [sub_resource type="StandardMaterial3D" id="3"]
    albedo_color = Color(0.686275, 0.686275, 0.686275, 1)
    
    [sub_resource type="StandardMaterial3D" id="4"]
    albedo_color = Color(0.168627, 0.168627, 0.168627, 1)
    
    [sub_resource type="BoxMesh" id="5"]
    material = SubResource("4")
    
    [sub_resource type="CylinderMesh" id="6"]
    
    [sub_resource type="StandardMaterial3D" id="7"]
    albedo_color = Color(0, 0.5, 0, 1)
    
    [sub_resource type="StandardMaterial3D" id="8"]
    albedo_color = Color(0.5, 0, 0, 1)
    
    [sub_resource type="BoxShape3D" id="9"]
    size = Vector3(1.13871, 0.54225, 0.383565)
    
    [node name="Switch" type="Node3D"]
    script = ExtResource("1")
    
    [node name="MeshInstance3D" type="MeshInstance3D" parent="."]
    transform = Transform3D(1.1422, 0, 0, 0, 0.534412, 0, 0, 0, 0.279885, 0, 0, 0)
    mesh = SubResource("1")
    material/0 = null
    
    [node name="MeshInstance2" type="MeshInstance3D" parent="."]
    transform = Transform3D(0.925302, 0, 0, 0, 0.194713, 0, 0, 0, 0.147171, 0, 0, 0.255825)
    mesh = SubResource("2")
    material/0 = SubResource("3")
    
    [node name="Slider" type="MeshInstance3D" parent="."]
    transform = Transform3D(0.18, 0, 0, 0, 0.1, 0, 0, 0, 0.1, 0.6, 0, 0.4)
    mesh = SubResource("5")
    material/0 = null
    
    [node name="LedOn" type="MeshInstance3D" parent="."]
    transform = Transform3D(0.1, 0, 0, 0, -4.37114e-09, -0.1, 0, 0.1, -4.37114e-09, -0.2, 0.4, 0.2)
    mesh = SubResource("6")
    material/0 = SubResource("7")
    
    [node name="LedOff" type="MeshInstance3D" parent="."]
    transform = Transform3D(0.1, 0, 0, 0, -4.37114e-09, -0.1, 0, 0.1, -4.37114e-09, 0.2, 0.4, 0.2)
    mesh = SubResource("6")
    material/0 = SubResource("8")
    
    [node name="PosOn" type="Marker3D" parent="."]
    transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.6, 0, 0.4)
    
    [node name="PosOff" type="Marker3D" parent="."]
    transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.6, 0, 0.4)
    
    [node name="StaticBody3D" type="StaticBody3D" parent="."]
    
    [node name="CollisionShape3D" type="CollisionShape3D" parent="StaticBody3D"]
    transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0.107878)
    shape = SubResource("9")