61 lines
1.3 KiB
Plaintext
61 lines
1.3 KiB
Plaintext
[gd_scene load_steps=4 format=1]
|
|
|
|
[ext_resource path="res://plank.png" type="Texture" id=1]
|
|
[ext_resource path="res://plankpin.png" type="Texture" id=2]
|
|
|
|
[sub_resource type="RectangleShape2D" id=1]
|
|
|
|
custom_solver_bias = 0.0
|
|
extents = Vector2( 128, 8 )
|
|
|
|
[node name="seesaw" type="Node2D"]
|
|
|
|
[node name="plank" type="RigidBody2D" parent="."]
|
|
|
|
input/pickable = false
|
|
shapes/0/shape = SubResource( 1 )
|
|
shapes/0/transform = Matrix32( 1, 0, 0, 1, 0, 0 )
|
|
shapes/0/trigger = false
|
|
collision/layers = 1
|
|
collision/mask = 1
|
|
mode = 0
|
|
mass = 5.10204
|
|
friction = 1.0
|
|
bounce = 0.0
|
|
gravity_scale = 1.0
|
|
custom_integrator = false
|
|
continuous_cd = 0
|
|
contacts_reported = 0
|
|
contact_monitor = false
|
|
sleeping = false
|
|
can_sleep = true
|
|
velocity/linear = Vector2( 0, 0 )
|
|
velocity/angular = 0.0
|
|
damp_override/linear = -1.0
|
|
damp_override/angular = -1.0
|
|
|
|
[node name="sprite" type="Sprite" parent="plank"]
|
|
|
|
texture = ExtResource( 1 )
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="plank"]
|
|
|
|
shape = SubResource( 1 )
|
|
trigger = false
|
|
_update_shape_index = -1
|
|
|
|
[node name="pin" type="PinJoint2D" parent="."]
|
|
|
|
node_a = NodePath("../plank")
|
|
node_b = NodePath("")
|
|
bias/bias = 0.0
|
|
collision/exclude_nodes = true
|
|
softness = 0.0
|
|
|
|
[node name="Sprite" type="Sprite" parent="."]
|
|
|
|
transform/pos = Vector2( -0.290825, 20.2425 )
|
|
texture = ExtResource( 2 )
|
|
|
|
|