Skip to content

Commit 0407ec8

Browse files
committed
Correctly setup the Ground Platform
1 parent ca3502a commit 0407ec8

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

game/controller/agent/AgentController.gd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ func moveTo() -> int:
101101
_rotate_agent(new_direction)
102102
var steering_behavior_velocity : Vector3 = (new_direction - velocity) * agentDelta * SPEED
103103
var new_velocity : Vector3 = velocity + steering_behavior_velocity
104+
104105
if nav_agent.avoidance_enabled:
105106
nav_agent.set_velocity(new_velocity)
106107
else:

game/controller/agent/AgentController.tscn

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ script = SubResource("GDScript_iqtkw")
2323
[node name="triangle" parent="AgentModel" instance=ExtResource("1_j6i1g")]
2424

2525
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
26-
transform = Transform3D(2.2, 0, 0, 0, 2.2, 0, 0, 0, 2.2, 0, 1.11032, 0)
26+
transform = Transform3D(2.2, 0, 0, 0, 2.2, 0, 0, 0, 2.2, 0, 1, 0)
2727
shape = SubResource("SphereShape3D_2sch0")
2828

2929
[node name="VisionArea" type="Area3D" parent="."]

game/scenes/Level/main.tscn

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ polygons = [PackedInt32Array(1, 0, 2), PackedInt32Array(2, 0, 3), PackedInt32Arr
2424

2525
[sub_resource type="QuadMesh" id="QuadMesh_706t6"]
2626
size = Vector2(200, 200)
27+
orientation = 1
2728

2829
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_5wmcq"]
2930
albedo_texture = ExtResource("4_xuoof")
@@ -88,14 +89,13 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 15.2856, 81.8714)
8889
navigation_mesh = SubResource("NavigationMesh_it68a")
8990

9091
[node name="Ground" type="StaticBody3D" parent="NavigationRegion3D" groups=["Ground"]]
91-
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 0, 0, 0)
9292

9393
[node name="MeshInstance3D" type="MeshInstance3D" parent="NavigationRegion3D/Ground"]
9494
mesh = SubResource("QuadMesh_706t6")
9595
surface_material_override/0 = SubResource("StandardMaterial3D_5wmcq")
9696

9797
[node name="CollisionShape3D" type="CollisionShape3D" parent="NavigationRegion3D/Ground"]
98-
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 0, -0.49, 0)
98+
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.49, 0)
9999
shape = SubResource("BoxShape3D_6wtjj")
100100

101101
[node name="Obstacles" type="Node3D" parent="NavigationRegion3D"]

0 commit comments

Comments
 (0)