From 11a3d5d4f4099f0967f16e351cf6f2f123eda78e Mon Sep 17 00:00:00 2001 From: snoweuph Date: Wed, 1 Feb 2023 15:19:04 +0100 Subject: [PATCH] Improved Tileset Colliders --- Assets/Tilesets/colony.tres | 80 +++++++++++++++++++++++++++++-------- Scenes/Test Scene.tscn | 7 ++-- 2 files changed, 68 insertions(+), 19 deletions(-) diff --git a/Assets/Tilesets/colony.tres b/Assets/Tilesets/colony.tres index bd38fa5..df5e986 100644 --- a/Assets/Tilesets/colony.tres +++ b/Assets/Tilesets/colony.tres @@ -1030,8 +1030,8 @@ texture = ExtResource("1") 24:1/0/terrain = 2 24:1/0/physics_layer_0/linear_velocity = Vector2(0, 0) 24:1/0/physics_layer_0/angular_velocity = 0.0 -24:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(8, -4, 8, -8, 5, -8) -24:1/0/physics_layer_0/polygon_1/points = PackedVector2Array(-5, -8, -8, -8, -8, -4) +24:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, -6, -8, -6, -6, -8, -4) +24:1/0/physics_layer_0/polygon_1/points = PackedVector2Array(6, -8, 6, -6, 8, -4, 8, -8) 24:1/0/terrains_peering_bit/right_side = 1 24:1/0/terrains_peering_bit/bottom_right_corner = 1 24:1/0/terrains_peering_bit/bottom_side = 1 @@ -1043,8 +1043,8 @@ texture = ExtResource("1") 24:0/0/terrain = 2 24:0/0/physics_layer_0/linear_velocity = Vector2(0, 0) 24:0/0/physics_layer_0/angular_velocity = 0.0 -24:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, 4, -8, 8, -5, 8) -24:0/0/physics_layer_0/polygon_1/points = PackedVector2Array(5, 8, 8, 8, 8, 4) +24:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(8, 8, 6, 8, 6, 6, 8, 4) +24:0/0/physics_layer_0/polygon_1/points = PackedVector2Array(-6, 8, -6, 6, -8, 4, -8, 8) 24:0/0/terrains_peering_bit/right_side = 0 24:0/0/terrains_peering_bit/bottom_side = 2 24:0/0/terrains_peering_bit/left_side = 0 @@ -1056,8 +1056,8 @@ texture = ExtResource("1") 25:0/0/terrain = 2 25:0/0/physics_layer_0/linear_velocity = Vector2(0, 0) 25:0/0/physics_layer_0/angular_velocity = 0.0 -25:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, 4, -8, 8, -5, 8) -25:0/0/physics_layer_0/polygon_1/points = PackedVector2Array(5, 8, 8, 8, 8, 4) +25:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(8, 8, 6, 8, 6, 6, 8, 4) +25:0/0/physics_layer_0/polygon_1/points = PackedVector2Array(-6, 8, -6, 6, -8, 4, -8, 8) 25:0/0/terrains_peering_bit/right_side = 1 25:0/0/terrains_peering_bit/bottom_side = 2 25:0/0/terrains_peering_bit/left_side = 1 @@ -1069,8 +1069,8 @@ texture = ExtResource("1") 25:1/0/terrain = 2 25:1/0/physics_layer_0/linear_velocity = Vector2(0, 0) 25:1/0/physics_layer_0/angular_velocity = 0.0 -25:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(8, -4, 8, -8, 5, -8) -25:1/0/physics_layer_0/polygon_1/points = PackedVector2Array(-5, -8, -8, -8, -8, -4) +25:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, -6, -8, -6, -6, -8, -4) +25:1/0/physics_layer_0/polygon_1/points = PackedVector2Array(6, -8, 6, -6, 8, -4, 8, -8) 25:1/0/terrains_peering_bit/right_side = 0 25:1/0/terrains_peering_bit/bottom_right_corner = 0 25:1/0/terrains_peering_bit/bottom_side = 0 @@ -1082,8 +1082,8 @@ texture = ExtResource("1") 26:1/0/terrain = 2 26:1/0/physics_layer_0/linear_velocity = Vector2(0, 0) 26:1/0/physics_layer_0/angular_velocity = 0.0 -26:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(4, 8, 8, 8, 8, 5) -26:1/0/physics_layer_0/polygon_1/points = PackedVector2Array(8, -5, 8, -8, 4, -8) +26:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(8, -8, 8, -6, 6, -6, 4, -8) +26:1/0/physics_layer_0/polygon_1/points = PackedVector2Array(8, 6, 6, 6, 4, 8, 8, 8) 26:1/0/terrains_peering_bit/right_side = 2 26:1/0/terrains_peering_bit/bottom_side = 1 26:1/0/terrains_peering_bit/bottom_left_corner = 1 @@ -1095,8 +1095,8 @@ texture = ExtResource("1") 26:0/0/terrain = 2 26:0/0/physics_layer_0/linear_velocity = Vector2(0, 0) 26:0/0/physics_layer_0/angular_velocity = 0.0 -26:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(4, 8, 8, 8, 8, 5) -26:0/0/physics_layer_0/polygon_1/points = PackedVector2Array(8, -5, 8, -8, 4, -8) +26:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(8, -8, 8, -6, 6, -6, 4, -8) +26:0/0/physics_layer_0/polygon_1/points = PackedVector2Array(8, 6, 6, 6, 4, 8, 8, 8) 26:0/0/terrains_peering_bit/right_side = 2 26:0/0/terrains_peering_bit/bottom_side = 0 26:0/0/terrains_peering_bit/bottom_left_corner = 0 @@ -1108,8 +1108,8 @@ texture = ExtResource("1") 27:0/0/terrain = 2 27:0/0/physics_layer_0/linear_velocity = Vector2(0, 0) 27:0/0/physics_layer_0/angular_velocity = 0.0 -27:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-4, -8, -8, -8, -8, -5) -27:0/0/physics_layer_0/polygon_1/points = PackedVector2Array(-8, 5, -8, 8, -4, 8) +27:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, 8, -8, 6, -6, 6, -4, 8) +27:0/0/physics_layer_0/polygon_1/points = PackedVector2Array(-8, -6, -6, -6, -4, -8, -8, -8) 27:0/0/terrains_peering_bit/right_side = 1 27:0/0/terrains_peering_bit/bottom_right_corner = 1 27:0/0/terrains_peering_bit/bottom_side = 1 @@ -1121,8 +1121,8 @@ texture = ExtResource("1") 27:1/0/terrain = 2 27:1/0/physics_layer_0/linear_velocity = Vector2(0, 0) 27:1/0/physics_layer_0/angular_velocity = 0.0 -27:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-4, -8, -8, -8, -8, -5) -27:1/0/physics_layer_0/polygon_1/points = PackedVector2Array(-8, 5, -8, 8, -4, 8) +27:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, 8, -8, 6, -6, 6, -4, 8) +27:1/0/physics_layer_0/polygon_1/points = PackedVector2Array(-8, -6, -6, -6, -4, -8, -8, -8) 27:1/0/terrains_peering_bit/right_side = 0 27:1/0/terrains_peering_bit/bottom_right_corner = 0 27:1/0/terrains_peering_bit/bottom_side = 0 @@ -1286,6 +1286,7 @@ texture = ExtResource("1") 29:0/0/terrain = 2 29:0/0/physics_layer_0/linear_velocity = Vector2(0, 0) 29:0/0/physics_layer_0/angular_velocity = 0.0 +29:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-6, 8, -6, 6, -8, 4, -8, 8) 29:0/0/terrains_peering_bit/right_side = 2 29:0/0/terrains_peering_bit/bottom_right_corner = 2 29:0/0/terrains_peering_bit/bottom_side = 2 @@ -1298,6 +1299,7 @@ texture = ExtResource("1") 29:1/0/terrain = 2 29:1/0/physics_layer_0/linear_velocity = Vector2(0, 0) 29:1/0/physics_layer_0/angular_velocity = 0.0 +29:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-6, -8, -6, -6, -8, -4, -8, -8) 29:1/0/terrains_peering_bit/right_side = 2 29:1/0/terrains_peering_bit/bottom_right_corner = 1 29:1/0/terrains_peering_bit/bottom_side = 1 @@ -1310,6 +1312,7 @@ texture = ExtResource("1") 30:0/0/terrain = 2 30:0/0/physics_layer_0/linear_velocity = Vector2(0, 0) 30:0/0/physics_layer_0/angular_velocity = 0.0 +30:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(6, 8, 6, 6, 8, 4, 8, 8) 30:0/0/terrains_peering_bit/right_side = 0 30:0/0/terrains_peering_bit/bottom_side = 2 30:0/0/terrains_peering_bit/bottom_left_corner = 2 @@ -1322,6 +1325,7 @@ texture = ExtResource("1") 30:1/0/terrain = 2 30:1/0/physics_layer_0/linear_velocity = Vector2(0, 0) 30:1/0/physics_layer_0/angular_velocity = 0.0 +30:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(6, -8, 6, -6, 8, -4, 8, -8) 30:1/0/terrains_peering_bit/right_side = 1 30:1/0/terrains_peering_bit/bottom_right_corner = 1 30:1/0/terrains_peering_bit/bottom_side = 1 @@ -1334,6 +1338,7 @@ texture = ExtResource("1") 32:2/0/terrain = 2 32:2/0/physics_layer_0/linear_velocity = Vector2(0, 0) 32:2/0/physics_layer_0/angular_velocity = 0.0 +32:2/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -6, -6, -6, -4, -8, -8, -8) 32:2/0/terrains_peering_bit/right_side = 0 32:2/0/terrains_peering_bit/bottom_right_corner = 0 32:2/0/terrains_peering_bit/bottom_side = 2 @@ -1346,6 +1351,7 @@ texture = ExtResource("1") 31:2/0/terrain = 2 31:2/0/physics_layer_0/linear_velocity = Vector2(0, 0) 31:2/0/physics_layer_0/angular_velocity = 0.0 +31:2/0/physics_layer_0/polygon_0/points = PackedVector2Array(8, -6, 6, -6, 4, -8, 8, -8) 31:2/0/terrains_peering_bit/right_side = 2 31:2/0/terrains_peering_bit/bottom_right_corner = 2 31:2/0/terrains_peering_bit/bottom_side = 2 @@ -1358,6 +1364,7 @@ texture = ExtResource("1") 31:3/0/terrain = 2 31:3/0/physics_layer_0/linear_velocity = Vector2(0, 0) 31:3/0/physics_layer_0/angular_velocity = 0.0 +31:3/0/physics_layer_0/polygon_0/points = PackedVector2Array(8, 6, 6, 6, 4, 8, 8, 8) 31:3/0/terrains_peering_bit/right_side = 2 31:3/0/terrains_peering_bit/bottom_side = 1 31:3/0/terrains_peering_bit/bottom_left_corner = 1 @@ -1370,6 +1377,7 @@ texture = ExtResource("1") 32:3/0/terrain = 2 32:3/0/physics_layer_0/linear_velocity = Vector2(0, 0) 32:3/0/physics_layer_0/angular_velocity = 0.0 +32:3/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, 6, -6, 6, -4, 8, -8, 8) 32:3/0/terrains_peering_bit/right_side = 0 32:3/0/terrains_peering_bit/bottom_right_corner = 0 32:3/0/terrains_peering_bit/bottom_side = 0 @@ -1382,6 +1390,7 @@ texture = ExtResource("1") 31:0/0/terrain = 2 31:0/0/physics_layer_0/linear_velocity = Vector2(0, 0) 31:0/0/physics_layer_0/angular_velocity = 0.0 +31:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-6, 8, -6, 6, -8, 4, -8, 8) 31:0/0/terrains_peering_bit/right_side = 2 31:0/0/terrains_peering_bit/bottom_right_corner = 2 31:0/0/terrains_peering_bit/bottom_side = 2 @@ -1394,6 +1403,7 @@ texture = ExtResource("1") 32:0/0/terrain = 2 32:0/0/physics_layer_0/linear_velocity = Vector2(0, 0) 32:0/0/physics_layer_0/angular_velocity = 0.0 +32:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(6, 8, 6, 6, 8, 4, 8, 8) 32:0/0/terrains_peering_bit/right_side = 1 32:0/0/terrains_peering_bit/bottom_side = 2 32:0/0/terrains_peering_bit/bottom_left_corner = 2 @@ -1406,6 +1416,7 @@ texture = ExtResource("1") 31:1/0/terrain = 2 31:1/0/physics_layer_0/linear_velocity = Vector2(0, 0) 31:1/0/physics_layer_0/angular_velocity = 0.0 +31:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-6, -8, -6, -6, -8, -4, -8, -8) 31:1/0/terrains_peering_bit/right_side = 2 31:1/0/terrains_peering_bit/bottom_right_corner = 0 31:1/0/terrains_peering_bit/bottom_side = 0 @@ -1418,6 +1429,7 @@ texture = ExtResource("1") 32:1/0/terrain = 2 32:1/0/physics_layer_0/linear_velocity = Vector2(0, 0) 32:1/0/physics_layer_0/angular_velocity = 0.0 +32:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(6, -8, 6, -6, 8, -4, 8, -8) 32:1/0/terrains_peering_bit/right_side = 0 32:1/0/terrains_peering_bit/bottom_right_corner = 0 32:1/0/terrains_peering_bit/bottom_side = 0 @@ -1430,6 +1442,7 @@ texture = ExtResource("1") 29:2/0/terrain = 2 29:2/0/physics_layer_0/linear_velocity = Vector2(0, 0) 29:2/0/physics_layer_0/angular_velocity = 0.0 +29:2/0/physics_layer_0/polygon_0/points = PackedVector2Array(8, -6, 6, -6, 4, -8, 8, -8) 29:2/0/terrains_peering_bit/right_side = 2 29:2/0/terrains_peering_bit/bottom_right_corner = 2 29:2/0/terrains_peering_bit/bottom_side = 2 @@ -1442,6 +1455,7 @@ texture = ExtResource("1") 29:3/0/terrain = 2 29:3/0/physics_layer_0/linear_velocity = Vector2(0, 0) 29:3/0/physics_layer_0/angular_velocity = 0.0 +29:3/0/physics_layer_0/polygon_0/points = PackedVector2Array(8, 6, 6, 6, 4, 8, 8, 8) 29:3/0/terrains_peering_bit/right_side = 2 29:3/0/terrains_peering_bit/bottom_side = 0 29:3/0/terrains_peering_bit/bottom_left_corner = 0 @@ -1454,6 +1468,7 @@ texture = ExtResource("1") 30:3/0/terrain = 2 30:3/0/physics_layer_0/linear_velocity = Vector2(0, 0) 30:3/0/physics_layer_0/angular_velocity = 0.0 +30:3/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, 6, -6, 6, -4, 8, -8, 8) 30:3/0/terrains_peering_bit/right_side = 1 30:3/0/terrains_peering_bit/bottom_right_corner = 1 30:3/0/terrains_peering_bit/bottom_side = 1 @@ -1466,6 +1481,7 @@ texture = ExtResource("1") 30:2/0/terrain = 2 30:2/0/physics_layer_0/linear_velocity = Vector2(0, 0) 30:2/0/physics_layer_0/angular_velocity = 0.0 +30:2/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -6, -6, -6, -4, -8, -8, -8) 30:2/0/terrains_peering_bit/right_side = 1 30:2/0/terrains_peering_bit/bottom_right_corner = 1 30:2/0/terrains_peering_bit/bottom_side = 2 @@ -1478,6 +1494,8 @@ texture = ExtResource("1") 24:3/0/terrain = 3 24:3/0/physics_layer_0/linear_velocity = Vector2(0, 0) 24:3/0/physics_layer_0/angular_velocity = 0.0 +24:3/0/physics_layer_0/polygon_0/points = PackedVector2Array(8, 8, 6, 8, 6, 6, 8, 4) +24:3/0/physics_layer_0/polygon_1/points = PackedVector2Array(-6, 8, -6, 6, -8, 4, -8, 8) 24:3/0/terrains_peering_bit/right_side = 0 24:3/0/terrains_peering_bit/bottom_side = 3 24:3/0/terrains_peering_bit/left_side = 0 @@ -1489,6 +1507,8 @@ texture = ExtResource("1") 25:3/0/terrain = 3 25:3/0/physics_layer_0/linear_velocity = Vector2(0, 0) 25:3/0/physics_layer_0/angular_velocity = 0.0 +25:3/0/physics_layer_0/polygon_0/points = PackedVector2Array(8, 8, 6, 8, 6, 6, 8, 4) +25:3/0/physics_layer_0/polygon_1/points = PackedVector2Array(-6, 8, -6, 6, -8, 4, -8, 8) 25:3/0/terrains_peering_bit/right_side = 1 25:3/0/terrains_peering_bit/bottom_side = 3 25:3/0/terrains_peering_bit/left_side = 1 @@ -1500,6 +1520,8 @@ texture = ExtResource("1") 26:3/0/terrain = 3 26:3/0/physics_layer_0/linear_velocity = Vector2(0, 0) 26:3/0/physics_layer_0/angular_velocity = 0.0 +26:3/0/physics_layer_0/polygon_0/points = PackedVector2Array(8, -8, 8, -6, 6, -6, 4, -8) +26:3/0/physics_layer_0/polygon_1/points = PackedVector2Array(8, 6, 6, 6, 4, 8, 8, 8) 26:3/0/terrains_peering_bit/right_side = 3 26:3/0/terrains_peering_bit/bottom_side = 0 26:3/0/terrains_peering_bit/bottom_left_corner = 0 @@ -1511,6 +1533,8 @@ texture = ExtResource("1") 27:3/0/terrain = 3 27:3/0/physics_layer_0/linear_velocity = Vector2(0, 0) 27:3/0/physics_layer_0/angular_velocity = 0.0 +27:3/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, 8, -8, 6, -6, 6, -4, 8) +27:3/0/physics_layer_0/polygon_1/points = PackedVector2Array(-8, -6, -6, -6, -4, -8, -8, -8) 27:3/0/terrains_peering_bit/right_side = 1 27:3/0/terrains_peering_bit/bottom_right_corner = 1 27:3/0/terrains_peering_bit/bottom_side = 1 @@ -1522,6 +1546,8 @@ texture = ExtResource("1") 27:4/0/terrain = 3 27:4/0/physics_layer_0/linear_velocity = Vector2(0, 0) 27:4/0/physics_layer_0/angular_velocity = 0.0 +27:4/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, 8, -8, 6, -6, 6, -4, 8) +27:4/0/physics_layer_0/polygon_1/points = PackedVector2Array(-8, -6, -6, -6, -4, -8, -8, -8) 27:4/0/terrains_peering_bit/right_side = 0 27:4/0/terrains_peering_bit/bottom_right_corner = 0 27:4/0/terrains_peering_bit/bottom_side = 0 @@ -1533,6 +1559,8 @@ texture = ExtResource("1") 26:4/0/terrain = 3 26:4/0/physics_layer_0/linear_velocity = Vector2(0, 0) 26:4/0/physics_layer_0/angular_velocity = 0.0 +26:4/0/physics_layer_0/polygon_0/points = PackedVector2Array(8, -8, 8, -6, 6, -6, 4, -8) +26:4/0/physics_layer_0/polygon_1/points = PackedVector2Array(8, 6, 6, 6, 4, 8, 8, 8) 26:4/0/terrains_peering_bit/right_side = 3 26:4/0/terrains_peering_bit/bottom_side = 1 26:4/0/terrains_peering_bit/bottom_left_corner = 1 @@ -1544,6 +1572,8 @@ texture = ExtResource("1") 25:4/0/terrain = 3 25:4/0/physics_layer_0/linear_velocity = Vector2(0, 0) 25:4/0/physics_layer_0/angular_velocity = 0.0 +25:4/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, -6, -8, -6, -6, -8, -4) +25:4/0/physics_layer_0/polygon_1/points = PackedVector2Array(6, -8, 6, -6, 8, -4, 8, -8) 25:4/0/terrains_peering_bit/right_side = 0 25:4/0/terrains_peering_bit/bottom_right_corner = 0 25:4/0/terrains_peering_bit/bottom_side = 0 @@ -1555,6 +1585,8 @@ texture = ExtResource("1") 24:4/0/terrain = 3 24:4/0/physics_layer_0/linear_velocity = Vector2(0, 0) 24:4/0/physics_layer_0/angular_velocity = 0.0 +24:4/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, -6, -8, -6, -6, -8, -4) +24:4/0/physics_layer_0/polygon_1/points = PackedVector2Array(6, -8, 6, -6, 8, -4, 8, -8) 24:4/0/terrains_peering_bit/right_side = 1 24:4/0/terrains_peering_bit/bottom_right_corner = 1 24:4/0/terrains_peering_bit/bottom_side = 1 @@ -1566,6 +1598,7 @@ texture = ExtResource("1") 34:3/0/terrain = 3 34:3/0/physics_layer_0/linear_velocity = Vector2(0, 0) 34:3/0/physics_layer_0/angular_velocity = 0.0 +34:3/0/physics_layer_0/polygon_0/points = PackedVector2Array(8, 6, 6, 6, 4, 8, 8, 8) 34:3/0/terrains_peering_bit/right_side = 3 34:3/0/terrains_peering_bit/bottom_side = 0 34:3/0/terrains_peering_bit/bottom_left_corner = 0 @@ -1578,6 +1611,7 @@ texture = ExtResource("1") 34:2/0/terrain = 3 34:2/0/physics_layer_0/linear_velocity = Vector2(0, 0) 34:2/0/physics_layer_0/angular_velocity = 0.0 +34:2/0/physics_layer_0/polygon_0/points = PackedVector2Array(8, -6, 6, -6, 4, -8, 8, -8) 34:2/0/terrains_peering_bit/right_side = 3 34:2/0/terrains_peering_bit/bottom_right_corner = 3 34:2/0/terrains_peering_bit/bottom_side = 3 @@ -1590,6 +1624,7 @@ texture = ExtResource("1") 34:1/0/terrain = 3 34:1/0/physics_layer_0/linear_velocity = Vector2(0, 0) 34:1/0/physics_layer_0/angular_velocity = 0.0 +34:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-6, -8, -6, -6, -8, -4, -8, -8) 34:1/0/terrains_peering_bit/right_side = 3 34:1/0/terrains_peering_bit/bottom_right_corner = 1 34:1/0/terrains_peering_bit/bottom_side = 1 @@ -1602,6 +1637,7 @@ texture = ExtResource("1") 34:0/0/terrain = 3 34:0/0/physics_layer_0/linear_velocity = Vector2(0, 0) 34:0/0/physics_layer_0/angular_velocity = 0.0 +34:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-6, 8, -6, 6, -8, 4, -8, 8) 34:0/0/terrains_peering_bit/right_side = 3 34:0/0/terrains_peering_bit/bottom_right_corner = 3 34:0/0/terrains_peering_bit/bottom_side = 3 @@ -1614,6 +1650,7 @@ texture = ExtResource("1") 35:0/0/terrain = 3 35:0/0/physics_layer_0/linear_velocity = Vector2(0, 0) 35:0/0/physics_layer_0/angular_velocity = 0.0 +35:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(6, 8, 6, 6, 8, 4, 8, 8) 35:0/0/terrains_peering_bit/right_side = 0 35:0/0/terrains_peering_bit/bottom_side = 3 35:0/0/terrains_peering_bit/bottom_left_corner = 3 @@ -1626,6 +1663,7 @@ texture = ExtResource("1") 36:0/0/terrain = 3 36:0/0/physics_layer_0/linear_velocity = Vector2(0, 0) 36:0/0/physics_layer_0/angular_velocity = 0.0 +36:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-6, 8, -6, 6, -8, 4, -8, 8) 36:0/0/terrains_peering_bit/right_side = 3 36:0/0/terrains_peering_bit/bottom_right_corner = 3 36:0/0/terrains_peering_bit/bottom_side = 3 @@ -1638,6 +1676,7 @@ texture = ExtResource("1") 36:1/0/terrain = 3 36:1/0/physics_layer_0/linear_velocity = Vector2(0, 0) 36:1/0/physics_layer_0/angular_velocity = 0.0 +36:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-6, -8, -6, -6, -8, -4, -8, -8) 36:1/0/terrains_peering_bit/right_side = 3 36:1/0/terrains_peering_bit/bottom_right_corner = 0 36:1/0/terrains_peering_bit/bottom_side = 0 @@ -1650,6 +1689,7 @@ texture = ExtResource("1") 35:1/0/terrain = 3 35:1/0/physics_layer_0/linear_velocity = Vector2(0, 0) 35:1/0/physics_layer_0/angular_velocity = 0.0 +35:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(6, -8, 6, -6, 8, -4, 8, -8) 35:1/0/terrains_peering_bit/right_side = 1 35:1/0/terrains_peering_bit/bottom_right_corner = 1 35:1/0/terrains_peering_bit/bottom_side = 1 @@ -1662,6 +1702,7 @@ texture = ExtResource("1") 35:2/0/terrain = 3 35:2/0/physics_layer_0/linear_velocity = Vector2(0, 0) 35:2/0/physics_layer_0/angular_velocity = 0.0 +35:2/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -6, -6, -6, -4, -8, -8, -8) 35:2/0/terrains_peering_bit/right_side = 1 35:2/0/terrains_peering_bit/bottom_right_corner = 1 35:2/0/terrains_peering_bit/bottom_side = 3 @@ -1674,6 +1715,7 @@ texture = ExtResource("1") 35:3/0/terrain = 3 35:3/0/physics_layer_0/linear_velocity = Vector2(0, 0) 35:3/0/physics_layer_0/angular_velocity = 0.0 +35:3/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, 6, -6, 6, -4, 8, -8, 8) 35:3/0/terrains_peering_bit/right_side = 1 35:3/0/terrains_peering_bit/bottom_right_corner = 1 35:3/0/terrains_peering_bit/bottom_side = 1 @@ -1686,6 +1728,7 @@ texture = ExtResource("1") 36:3/0/terrain = 3 36:3/0/physics_layer_0/linear_velocity = Vector2(0, 0) 36:3/0/physics_layer_0/angular_velocity = 0.0 +36:3/0/physics_layer_0/polygon_0/points = PackedVector2Array(8, 6, 6, 6, 4, 8, 8, 8) 36:3/0/terrains_peering_bit/right_side = 3 36:3/0/terrains_peering_bit/bottom_side = 1 36:3/0/terrains_peering_bit/bottom_left_corner = 1 @@ -1698,6 +1741,7 @@ texture = ExtResource("1") 36:2/0/terrain = 3 36:2/0/physics_layer_0/linear_velocity = Vector2(0, 0) 36:2/0/physics_layer_0/angular_velocity = 0.0 +36:2/0/physics_layer_0/polygon_0/points = PackedVector2Array(8, -6, 6, -6, 4, -8, 8, -8) 36:2/0/terrains_peering_bit/right_side = 3 36:2/0/terrains_peering_bit/bottom_right_corner = 3 36:2/0/terrains_peering_bit/bottom_side = 3 @@ -1710,6 +1754,7 @@ texture = ExtResource("1") 37:3/0/terrain = 3 37:3/0/physics_layer_0/linear_velocity = Vector2(0, 0) 37:3/0/physics_layer_0/angular_velocity = 0.0 +37:3/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, 6, -6, 6, -4, 8, -8, 8) 37:3/0/terrains_peering_bit/right_side = 0 37:3/0/terrains_peering_bit/bottom_right_corner = 0 37:3/0/terrains_peering_bit/bottom_side = 0 @@ -1722,6 +1767,7 @@ texture = ExtResource("1") 37:2/0/terrain = 3 37:2/0/physics_layer_0/linear_velocity = Vector2(0, 0) 37:2/0/physics_layer_0/angular_velocity = 0.0 +37:2/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -6, -6, -6, -4, -8, -8, -8) 37:2/0/terrains_peering_bit/right_side = 0 37:2/0/terrains_peering_bit/bottom_right_corner = 0 37:2/0/terrains_peering_bit/bottom_side = 3 @@ -1734,6 +1780,7 @@ texture = ExtResource("1") 37:1/0/terrain = 3 37:1/0/physics_layer_0/linear_velocity = Vector2(0, 0) 37:1/0/physics_layer_0/angular_velocity = 0.0 +37:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(6, -8, 6, -6, 8, -4, 8, -8) 37:1/0/terrains_peering_bit/right_side = 0 37:1/0/terrains_peering_bit/bottom_right_corner = 0 37:1/0/terrains_peering_bit/bottom_side = 0 @@ -1746,6 +1793,7 @@ texture = ExtResource("1") 37:0/0/terrain = 3 37:0/0/physics_layer_0/linear_velocity = Vector2(0, 0) 37:0/0/physics_layer_0/angular_velocity = 0.0 +37:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(6, 8, 6, 6, 8, 4, 8, 8) 37:0/0/terrains_peering_bit/right_side = 1 37:0/0/terrains_peering_bit/bottom_side = 3 37:0/0/terrains_peering_bit/bottom_left_corner = 3 diff --git a/Scenes/Test Scene.tscn b/Scenes/Test Scene.tscn index 6c3e00c..ede47eb 100644 --- a/Scenes/Test Scene.tscn +++ b/Scenes/Test Scene.tscn @@ -4,14 +4,15 @@ [ext_resource type="Texture2D" uid="uid://dp4tdg3fxe5bf" path="res://Assets/Textures/color_cube.png" id="2_0flm2"] [ext_resource type="Script" path="res://Scripts/Player/PlayerMovement.gd" id="2_gw00d"] -[sub_resource type="CircleShape2D" id="CircleShape2D_bcrdl"] -radius = 3.0 +[sub_resource type="RectangleShape2D" id="RectangleShape2D_6t40h"] +size = Vector2(5.5, 5.5) [node name="Test Scene" type="Node2D"] [node name="TileMap" type="TileMap" parent="."] position = Vector2(0, 1) tile_set = ExtResource("2") +collision_visibility_mode = 1 format = 2 layer_0/name = "Ground" layer_0/tile_data = PackedInt32Array(1114138, 262144, 1, 1048602, 0, 1, 983066, 0, 1, 1114137, 65536, 0, 1114136, 65536, 0, 1048603, 131072, 1, 1179675, 131072, 2, 1114139, 589824, 0, 983067, 131072, 1, 917531, 589824, 0, 1179674, 65536, 2, 917530, 262144, 0, 1179673, 1572864, 3, 917529, 65536, 2, 1179672, 65536, 2, 917528, 65536, 2, 1179671, 0, 2, 1114135, 655360, 3, 1048599, 131072, 1, 983063, 131072, 1, 917527, 196608, 0, 851995, 131072, 1, 851994, 196608, 3, 851993, 65536, 1, 851992, 196608, 3, 851991, 65536, 1, 917532, 327680, 2, 917533, 458752, 1, 983069, 327680, 1, 1048605, 327680, 1, 1114141, 458752, 2, 1114140, 327680, 2, 917525, 0, 0, 983061, 1769472, 1, 1048597, 0, 1, 1114133, 0, 2, 1114134, 65536, 2, 786456, 196608, 3, 786457, 196608, 2, 720921, 262144, 3, 720920, 262144, 3, 720919, 262144, 2, 655383, 262144, 2, 655382, 0, 1, 589848, 65536, 1, 589849, 196608, 2, 655385, 65536, 1, 655384, 262144, 3, 655386, 65536, 1, 720922, 65536, 1, 589850, 65536, 1, 524313, 65536, 1, 524312, 196608, 2, 524311, 262144, 1, 524310, 65536, 0, 589846, 262144, 0, 589847, 65536, 1, 524314, 196608, 1, 655387, 131072, 1, 589851, 131072, 1, 458776, 1638400, 1, 458777, 65536, 0, 458778, 131072, 0, 524315, 131072, 0, 458775, 0, 0, 720916, 983040, 3, 655380, 983040, 1, 589844, 917504, 1, 524308, 917504, 1, 458772, 983040, 0, 458771, 851968, 1, 524307, 1048576, 2, 589843, 851968, 1, 655379, 1048576, 3, 720915, 851968, 1, 589845, 0, 2, 524309, 0, 0, 524306, 786432, 1, 458770, 1048576, 0, 589842, 786432, 1, 655378, 1048576, 1, 655377, 851968, 0, 458769, 851968, 2, 720914, 851968, 1, 720913, 983040, 2, 655376, 851968, 0, 589839, 917504, 1, 655375, 1441792, 3, 524303, 917504, 1, 524302, 786432, 1, 589838, 786432, 1, 458768, 851968, 2, 458767, 983040, 0, 393233, 1048576, 1, 393234, 983040, 2, 393235, 851968, 1, 393236, 983040, 3, 458773, 851968, 2, 720917, 2031616, 2, 655381, 917504, 0, 393237, 851968, 1, 786452, 851968, 1, 786453, 2031616, 3, 720918, 2097152, 2, 786454, 2097152, 3, 851990, 0, 1, 851989, 917504, 2, 851988, 983040, 0, 851987, 983040, 2, 786451, 983040, 2, 458774, 917504, 2, 393238, 983040, 0, 393239, 851968, 2, 393240, 1638400, 0, 393241, 851968, 2, 393242, 917504, 2, 327706, 917504, 0, 327705, 851968, 0, 327704, 851968, 0, 327703, 851968, 0, 327702, 851968, 0, 327701, 851968, 0, 327700, 851968, 0, 327699, 851968, 0, 327698, 983040, 1, 786455, 196608, 3, 786450, 851968, 1, 917522, 786432, 2, 917524, 917504, 1, 917523, 1048576, 0, 1048596, 917504, 2, 983059, 786432, 1, 1048595, 786432, 2, 851986, 1048576, 0, 851985, 786432, 2, 786449, 1048576, 0, 786448, 786432, 2, 720912, 1048576, 0, 720911, 786432, 2, 655374, 786432, 2, 458766, 786432, 1, 393231, 851968, 0, 393232, 851968, 0, 327697, 786432, 1, 327694, 917504, 1, 327693, 1310720, 0, 262157, 786432, 1, 262158, 983040, 0, 393230, 1441792, 3, 393229, 786432, 2, 262159, 851968, 2, 262160, 851968, 2, 262161, 1048576, 0, 196625, 851968, 1, 196624, 1048576, 3, 196623, 851968, 1, 196622, 1048576, 1, 262162, 917504, 1, 196626, 983040, 0, 196627, 851968, 2, 196628, 851968, 2, 196629, 917504, 2, 131093, 917504, 0, 131092, 851968, 0, 131091, 851968, 0, 131090, 851968, 0, 131089, 851968, 0, 131088, 851968, 0, 131086, 786432, 0, 131087, 851968, 0, 196621, 786432, 0, 327692, 1114112, 2, 327691, 1114112, 2, 262154, 917504, 0, 327690, 1376256, 0, 393226, 917504, 2, 262153, 851968, 0, 327689, 851968, 1, 393225, 851968, 2, 393224, 786432, 2, 327688, 786432, 1, 262152, 786432, 0, 589855, 0, 0, 655391, 0, 2, 589856, 65536, 0, 655393, 131072, 2, 589857, 131072, 0, 786464, 851968, 1, 786463, 1048576, 3, 786465, 917504, 1, 917537, 917504, 2, 852001, 917504, 1, 852000, 983040, 2, 851999, 1048576, 0, 917535, 786432, 2, 917536, 851968, 2, 720927, 851968, 0, 720929, 917504, 0, 720928, 1572864, 1, 655392, 1572864, 0, 786462, 851968, 1, 786461, 983040, 3, 786460, 1769472, 0, 720924, 786432, 0, 720925, 851968, 0, 720926, 851968, 0, 851996, 786432, 2, 851997, 851968, 2, 851998, 851968, 2, 786458, 65536, 1, 786459, 1703936, 0, 720923, 131072, 1, 983062, 65536, 1, 1048598, 65536, 1, 983060, 1703936, 1, 917526, 262144, 1, 1245209, 1572864, 4, 1245208, 786432, 0, 1310744, 786432, 1, 1310745, 851968, 1, 1310746, 917504, 1, 1245210, 917504, 0, 1376282, 983040, 1, 1376281, 851968, 1, 1376280, 1048576, 1, 1441816, 983040, 3, 1441817, 851968, 1, 1441818, 851968, 1, 1507353, 851968, 1, 1507352, 1048576, 0, 1507354, 983040, 0, 1376279, 851968, 0, 1441815, 1048576, 2, 1507351, 851968, 2, 1572888, 786432, 1, 1572889, 851968, 1, 1572890, 917504, 1, 1507355, 851968, 2, 1441819, 851968, 1, 1376283, 851968, 0, 1376284, 917504, 0, 1441820, 1703936, 4, 1507356, 917504, 2, 1376278, 786432, 0, 1441814, 1769472, 3, 1507350, 786432, 2, 1638424, 786432, 2, 1638425, 1638400, 3, 1638426, 917504, 2, 1507349, 131072, 2, 1441813, 1703936, 3, 1376277, 131072, 0, 1376276, 65536, 0, 1376275, 65536, 0, 1441811, 65536, 1, 1507347, 2293760, 0, 1507348, 65536, 2, 1441812, 65536, 1, 1376285, 0, 0, 1376286, 65536, 0, 1441822, 196608, 3, 1441823, 65536, 1, 1507358, 65536, 2, 1507357, 0, 2, 1441821, 1769472, 4, 1376287, 65536, 0, 1507359, 2228224, 0, 1507360, 2293760, 0, 1441824, 196608, 1, 1376288, 131072, 0, 1376274, 0, 0, 1441810, 262144, 1, 1507346, 2228224, 0, 1703960, 0, 0, 1703961, 1638400, 4, 1703962, 131072, 0, 1769498, 131072, 1, 1769497, 65536, 1, 1769496, 0, 1, 1835032, 0, 1, 1835033, 262144, 3, 1900569, 65536, 1, 1835034, 131072, 1, 1900570, 131072, 1, 1900568, 0, 1, 1572884, 917504, 0, 1572883, 2293760, 1, 1572882, 2228224, 1, 1638418, 851968, 1, 1703954, 851968, 2, 1638419, 851968, 1, 1638420, 917504, 1, 1703956, 917504, 2, 1703955, 851968, 2, 1703953, 786432, 2, 1638417, 786432, 1, 1572881, 786432, 0, 1572894, 786432, 0, 1638430, 786432, 2, 1638432, 851968, 2, 1638433, 917504, 2, 1638431, 851968, 2, 1572895, 2228224, 1, 1572896, 2293760, 1, 1572897, 917504, 0, 1507345, 0, 2, 1441809, 0, 0, 1507361, 131072, 2, 1441825, 131072, 0, 2097178, 2228224, 3, 2031641, 65536, 1, 1966104, 0, 1, 2162714, 131072, 2, 2031642, 2228224, 2, 1966106, 131072, 1, 2162713, 65536, 2, 2097177, 65536, 1, 1966105, 65536, 1, 2162712, 0, 2, 2097176, 2424832, 3, 2031640, 2424832, 2, 2162711, 917504, 2, 2097175, 2359296, 3, 2031639, 2359296, 2, 1966103, 917504, 0, 1966102, 851968, 0, 1966101, 851968, 0, 1966100, 851968, 0, 1966099, 786432, 0, 2162710, 851968, 2, 2097174, 1048576, 2, 2031638, 1048576, 3, 2162709, 851968, 2, 2097173, 1048576, 2, 2031637, 1048576, 3, 2162708, 851968, 2, 2097172, 983040, 2, 2031636, 851968, 1, 2162707, 786432, 2, 2097171, 786432, 1, 2031635, 786432, 1, 1966107, 786432, 0, 2031643, 2293760, 2, 2031644, 851968, 1, 2097180, 851968, 1, 2097181, 983040, 2, 2162718, 851968, 2, 2162719, 917504, 2, 2097183, 917504, 1, 2031647, 917504, 1, 1966111, 917504, 0, 2097182, 983040, 3, 2031646, 851968, 1, 1966110, 851968, 0, 2162717, 851968, 2, 2031645, 851968, 1, 1966109, 851968, 0, 2162716, 851968, 2, 1966108, 851968, 0, 2162715, 786432, 2, 2097179, 2293760, 3) @@ -36,4 +37,4 @@ editor_draw_drag_margin = true [node name="CollisionShape2D" type="CollisionShape2D" parent="Player"] position = Vector2(149, 86) -shape = SubResource("CircleShape2D_bcrdl") +shape = SubResource("RectangleShape2D_6t40h") -- 2.45.2