35 lines
1.1 KiB
Plaintext
35 lines
1.1 KiB
Plaintext
[gd_scene load_steps=4 format=3 uid="uid://cdctp617gk35b"]
|
|
|
|
[ext_resource type="Script" uid="uid://dd32rqdya446r" path="res://scenes/ship/components/accelerometer.gd" id="1_8lsml"]
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_8lsml"]
|
|
size = Vector2(20, 100)
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_8lsml"]
|
|
|
|
[node name="Accelerometer" type="RigidBody2D"]
|
|
inertia = 0.0
|
|
script = ExtResource("1_8lsml")
|
|
spring_stiffness = 0.1
|
|
spring_damping = 0.1
|
|
inertia = 0.0
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
shape = SubResource("RectangleShape2D_8lsml")
|
|
|
|
[node name="FrontSpring" type="DampedSpringJoint2D" parent="."]
|
|
node_a = NodePath("..")
|
|
node_b = NodePath("../TestMass")
|
|
rest_length = 10.0
|
|
|
|
[node name="TestMass" type="RigidBody2D" parent="."]
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="TestMass"]
|
|
shape = SubResource("CircleShape2D_8lsml")
|
|
|
|
[node name="RearSpring" type="DampedSpringJoint2D" parent="."]
|
|
position = Vector2(0, -50)
|
|
node_a = NodePath("../TestMass")
|
|
node_b = NodePath("..")
|
|
rest_length = 10.0
|