Skip to content

Commit

Permalink
Merge pull request #348 from texaco/master
Browse files Browse the repository at this point in the history
Fix seesaw falling plank from 2d demo
  • Loading branch information
bojidar-bg authored Oct 16, 2019
2 parents d29b987 + 98e60d4 commit c34a2b4
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions 2d/physics_platformer/background/Seesaw.tscn
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
[gd_scene load_steps=4 format=2]
[gd_scene load_steps=5 format=2]

[ext_resource path="res://background/plank.png" type="Texture" id=1]
[ext_resource path="res://background/plankpin.png" type="Texture" id=2]

[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 128, 8 )

[sub_resource type="RectangleShape2D" id=2]
extents = Vector2( 16, 27 )

[node name="Seesaw" type="Node2D"]

[node name="Plank" type="RigidBody2D" parent="."]
Expand All @@ -18,9 +21,15 @@ texture = ExtResource( 1 )
shape = SubResource( 1 )

[node name="Pin" type="PinJoint2D" parent="."]
node_a = NodePath("../plank")
node_a = NodePath("../Plank")
node_b = NodePath("../Pillar")

[node name="Pillar" type="StaticBody2D" parent="."]

[node name="Sprite" type="Sprite" parent="."]
[node name="Sprite" type="Sprite" parent="Pillar"]
position = Vector2( -0.290825, 20.2425 )
texture = ExtResource( 2 )

[node name="CollisionShape2D" type="CollisionShape2D" parent="Pillar"]
position = Vector2( 0, 25 )
shape = SubResource( 2 )

0 comments on commit c34a2b4

Please sign in to comment.