Test
This commit is contained in:
parent
5643fee9d3
commit
99d5016ac2
9 changed files with 171 additions and 149 deletions
|
|
@ -9,35 +9,11 @@
|
|||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_ix7xn"]
|
||||
size = Vector2(48, 48)
|
||||
|
||||
[node name="Part" type="StaticBody2D"]
|
||||
collision_layer = 24
|
||||
collision_mask = 24
|
||||
[node name="Part" type="Area2D" groups=["Part"]]
|
||||
collision_layer = 8
|
||||
collision_mask = 16
|
||||
script = ExtResource("1_hlmu7")
|
||||
|
||||
[node name="Overlap Test" type="RayCast2D" parent="."]
|
||||
position = Vector2(-16, -16)
|
||||
target_position = Vector2(8, 0)
|
||||
collision_mask = 24
|
||||
hit_from_inside = true
|
||||
|
||||
[node name="Overlap Test2" type="RayCast2D" parent="."]
|
||||
position = Vector2(-16, 16)
|
||||
target_position = Vector2(8, 0)
|
||||
collision_mask = 24
|
||||
hit_from_inside = true
|
||||
|
||||
[node name="Overlap Test3" type="RayCast2D" parent="."]
|
||||
position = Vector2(16, -16)
|
||||
target_position = Vector2(-8, 0)
|
||||
collision_mask = 24
|
||||
hit_from_inside = true
|
||||
|
||||
[node name="Overlap Test4" type="RayCast2D" parent="."]
|
||||
position = Vector2(16, 16)
|
||||
target_position = Vector2(-8, 0)
|
||||
collision_mask = 24
|
||||
hit_from_inside = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("RectangleShape2D_ix7xn")
|
||||
|
||||
|
|
@ -84,3 +60,10 @@ position = Vector2(-32, 0)
|
|||
target_position = Vector2(0, 0)
|
||||
collision_mask = 3
|
||||
hit_from_inside = true
|
||||
|
||||
[node name="Area2D" type="Area2D" parent="."]
|
||||
collision_layer = 16
|
||||
collision_mask = 8
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
|
||||
shape = SubResource("RectangleShape2D_ix7xn")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue