edge detector repositioned (fixes #124)

This commit is contained in:
pennyrigate 2023-07-19 20:53:26 -04:00
parent 7b0d520d1f
commit 8ed3375a90

View file

@ -42,7 +42,7 @@ _data = [ Vector2( 0, 1 ), 0.0, -0.0636948, 0, 0, Vector2( 1, 0 ), -3.43886, 0.0
extents = Vector2( 2.5, 5 ) extents = Vector2( 2.5, 5 )
[sub_resource type="RectangleShape2D" id=3] [sub_resource type="RectangleShape2D" id=3]
extents = Vector2( 2.6, 5.1 ) extents = Vector2( 2.5, 5 )
[sub_resource type="RectangleShape2D" id=16] [sub_resource type="RectangleShape2D" id=16]
extents = Vector2( 2.5, 2.5 ) extents = Vector2( 2.5, 2.5 )
@ -1074,9 +1074,9 @@ cast_to = Vector2( 1, 0 )
collision_mask = 4 collision_mask = 4
[node name="EdgeDetector" type="RayCast2D" parent="Graphics"] [node name="EdgeDetector" type="RayCast2D" parent="Graphics"]
position = Vector2( 1, 0 ) position = Vector2( 1, -1 )
enabled = true enabled = true
cast_to = Vector2( 0, 4 ) cast_to = Vector2( 0, 5 )
collision_mask = 5 collision_mask = 5
[node name="BodyShape" type="CollisionShape2D" parent="."] [node name="BodyShape" type="CollisionShape2D" parent="."]