[gd_scene format=3 uid="uid://b0fqh430x23kp"] [ext_resource type="Script" uid="uid://2vyt44um2tty" path="res://Scripts/Lever.gd" id="1_f25qh"] [sub_resource type="BoxShape3D" id="BoxShape3D_476pq"] size = Vector3(0.1, 0.1, 0.4) [sub_resource type="BoxMesh" id="BoxMesh_va8t4"] size = Vector3(0.1, 0.1, 0.4) [sub_resource type="BoxMesh" id="BoxMesh_1blfk"] size = Vector3(0.4, 0.6, 0.2) [sub_resource type="BoxShape3D" id="BoxShape3D_1blfk"] size = Vector3(0.4, 0.6, 0.2) [node name="SimpleLever" type="Node3D" unique_id=2031608942 node_paths=PackedStringArray("body", "hinge")] script = ExtResource("1_f25qh") body = NodePath("Lever") hinge = NodePath("HingeJoint3D") metadata/_custom_type_script = "uid://2vyt44um2tty" [node name="Lever" type="RigidBody3D" parent="." unique_id=1993131115] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -0.35175258) collision_mask = 0 [node name="CollisionShape3D" type="CollisionShape3D" parent="Lever" unique_id=2040680943] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0.15) shape = SubResource("BoxShape3D_476pq") [node name="MeshInstance3D" type="MeshInstance3D" parent="Lever" unique_id=252238333] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0.15) mesh = SubResource("BoxMesh_va8t4") [node name="Base" type="StaticBody3D" parent="." unique_id=824081649] [node name="MeshInstance3D" type="MeshInstance3D" parent="Base" unique_id=703826231] mesh = SubResource("BoxMesh_1blfk") [node name="CollisionShape3D" type="CollisionShape3D" parent="Base" unique_id=954919913] shape = SubResource("BoxShape3D_1blfk") [node name="HingeJoint3D" type="HingeJoint3D" parent="." unique_id=1859101471] transform = Transform3D(-0.029536895, 0.001207204, -0.99956304, 0.18270016, -0.9831466, -0.0065861586, -0.98272485, -0.18281487, 0.02881853, 0, 0, -0.05022694) node_a = NodePath("../Base") node_b = NodePath("../Lever") angular_limit/enable = true angular_limit/upper = 0.7853982 angular_limit/lower = -0.7853982