[gd_scene load_steps=6 format=2]

[ext_resource path="res://src/Contraptions/Platform/SpringPhysics.gd" type="Script" id=1]
[ext_resource path="res://assets/contraption/SpringPlatform.png" type="Texture" id=2]

[sub_resource type="RectangleShape2D" id=2]
extents = Vector2( 11.4863, 2.10568 )

[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 11.925, 0.0109166 )

[sub_resource type="RectangleShape2D" id=3]
extents = Vector2( 11.9158, 2.06284 )

[node name="SpringPlatform" type="Node2D"]
script = ExtResource( 1 )

[node name="Platform" type="Sprite" parent="."]
texture = ExtResource( 2 )

[node name="SpringSkin" type="Area2D" parent="."]
collision_layer = 32
collision_mask = 3

[node name="CollisionShape2D" type="CollisionShape2D" parent="SpringSkin"]
position = Vector2( -0.0412841, -1.27843 )
shape = SubResource( 2 )

[node name="SpringBody" type="KinematicBody2D" parent="."]
collision_layer = 32
collision_mask = 41

[node name="CollisionShape2D" type="CollisionShape2D" parent="SpringBody"]
position = Vector2( 0.0109062, -1.5689 )
shape = SubResource( 1 )
one_way_collision = true

[node name="EnteringVelocityDetector" type="Area2D" parent="."]
position = Vector2( 0, -3.04889 )
collision_layer = 32
collision_mask = 41

[node name="CollisionShape2D" type="CollisionShape2D" parent="EnteringVelocityDetector"]
position = Vector2( 0.00395775, -1.07744 )
shape = SubResource( 3 )

[connection signal="area_exited" from="SpringSkin" to="." method="_on_SpringSkin_area_exited"]
[connection signal="area_entered" from="EnteringVelocityDetector" to="." method="_on_EnteringVelocityDetector_area_entered"]
