Skip to content

Commit

Permalink
Align units to Godot 4.3 (shadows and Y-positioning)
Browse files Browse the repository at this point in the history
  • Loading branch information
Scony committed Aug 26, 2024
1 parent c4975d7 commit 21cba83
Show file tree
Hide file tree
Showing 12 changed files with 13 additions and 11 deletions.
1 change: 1 addition & 0 deletions source/match/Match.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ bounding_planes = Array[Plane]([Plane(1, 0, 0, 0), Plane(-1, 0, 0, -50), Plane(0
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
transform = Transform3D(0.512043, 0.673162, -0.533541, 0, 0.621148, 0.783694, 0.85896, -0.401285, 0.318054, 0, 38.7614, 0)
shadow_enabled = true
shadow_bias = 0.3
shadow_blur = 0.05
directional_shadow_split_1 = 0.45
directional_shadow_split_2 = 0.5
Expand Down
2 changes: 1 addition & 1 deletion source/match/units/AircraftFactory.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ radius = 1.5

[node name="MovementObstacle" parent="." instance=ExtResource("3_j1buj")]
radius = 1.5
path_height_offset = 0.5
path_height_offset = 0.6

[node name="StaticMovementObstacle" parent="." instance=ExtResource("6_rvkkl")]
shape = SubResource("CylinderShape3D_ea0ur")
Expand Down
2 changes: 1 addition & 1 deletion source/match/units/AntiAirTurret.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ radius = 0.6

[node name="MovementObstacle" parent="." instance=ExtResource("3_hgb44")]
radius = 0.6
path_height_offset = 0.5
path_height_offset = 0.6

[node name="StaticMovementObstacle" parent="." instance=ExtResource("6_tt140")]
shape = SubResource("CylinderShape3D_65kle")
Expand Down
2 changes: 1 addition & 1 deletion source/match/units/AntiGroundTurret.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ radius = 0.6

[node name="MovementObstacle" parent="." instance=ExtResource("3_ds80w")]
radius = 0.6
path_height_offset = 0.5
path_height_offset = 0.6

[node name="StaticMovementObstacle" parent="." instance=ExtResource("6_w6nbo")]
shape = SubResource("CylinderShape3D_t2frt")
Expand Down
2 changes: 1 addition & 1 deletion source/match/units/CommandCenter.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ radius = 2.0

[node name="MovementObstacle" parent="." instance=ExtResource("4_f5u8t")]
radius = 2.0
path_height_offset = 0.5
path_height_offset = 0.6

[node name="StaticMovementObstacle" parent="." instance=ExtResource("6_5gbe5")]
shape = SubResource("CylinderShape3D_2xy8f")
Expand Down
2 changes: 1 addition & 1 deletion source/match/units/Drone.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ radius = 0.6
[node name="Movement" parent="." instance=ExtResource("4_wemaw")]
path_desired_distance = 0.1
target_desired_distance = 0.1
path_height_offset = 0.5
path_height_offset = 0.8
radius = 0.6
neighbor_distance = 8.0
max_neighbors = 40
Expand Down
2 changes: 1 addition & 1 deletion source/match/units/Helicopter.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ radius = 0.8
[node name="Movement" parent="." instance=ExtResource("3_4ms8e")]
path_desired_distance = 0.1
target_desired_distance = 0.1
path_height_offset = 0.5
path_height_offset = 0.8
radius = 0.8
neighbor_distance = 8.0
max_neighbors = 40
Expand Down
2 changes: 1 addition & 1 deletion source/match/units/Tank.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ radius = 0.9
[node name="Movement" parent="." instance=ExtResource("3_4m8ma")]
path_desired_distance = 0.5
target_desired_distance = 0.5
path_height_offset = 0.5
path_height_offset = 0.6
path_max_distance = 0.51
radius = 0.9
neighbor_distance = 8.0
Expand Down
2 changes: 1 addition & 1 deletion source/match/units/VehicleFactory.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ radius = 1.5

[node name="MovementObstacle" parent="." instance=ExtResource("3_cp6bx")]
radius = 1.5
path_height_offset = 0.5
path_height_offset = 0.6

[node name="StaticMovementObstacle" parent="." instance=ExtResource("6_rohol")]
shape = SubResource("CylinderShape3D_x8l2r")
Expand Down
3 changes: 2 additions & 1 deletion source/match/units/Worker.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ collision_mask = 0
script = ExtResource("1_hapsg")

[node name="Geometry" type="Node3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.02, 0)

[node name="rover" parent="Geometry" instance=ExtResource("2_ef11q")]
transform = Transform3D(2, 0, 0, 0, 2, 0, 0, 0, 2, -4, 0, -3)
Expand All @@ -37,7 +38,7 @@ radius = 0.6
[node name="Movement" parent="." instance=ExtResource("4_lmprj")]
path_desired_distance = 0.31
target_desired_distance = 0.31
path_height_offset = 0.5
path_height_offset = 0.6
path_max_distance = 0.31
radius = 0.6
neighbor_distance = 8.0
Expand Down
2 changes: 1 addition & 1 deletion source/match/units/non-player/ResourceA.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ radius = 0.6

[node name="MovementObstacle" parent="." instance=ExtResource("3_xabt4")]
radius = 0.6
path_height_offset = 0.5
path_height_offset = 0.6

[node name="StaticMovementObstacle" parent="." instance=ExtResource("6_y2ye1")]
shape = SubResource("CylinderShape3D_wb6so")
Expand Down
2 changes: 1 addition & 1 deletion source/match/units/non-player/ResourceB.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ radius = 0.6

[node name="MovementObstacle" parent="." instance=ExtResource("4_sxjck")]
radius = 0.6
path_height_offset = 0.5
path_height_offset = 0.6

[node name="StaticMovementObstacle" parent="." instance=ExtResource("6_vvgyq")]
shape = SubResource("CylinderShape3D_002vj")
Expand Down

0 comments on commit 21cba83

Please sign in to comment.