Added collision shapes and navigation regions to corner tiles.

This commit is contained in:
Nekojimi 2025-04-22 20:24:33 +01:00
parent 28651c6811
commit 476b6b97b5
1 changed files with 8 additions and 8 deletions

View File

@ -48,14 +48,14 @@ vertices = PackedVector3Array(-0.75, 0.75, -0.75, -0.75, 0, 0.75, 0.75, 0.75, 0.
polygons = [PackedInt32Array(3, 2, 0), PackedInt32Array(0, 2, 1)]
agent_radius = 0.2
[sub_resource type="ConvexPolygonShape3D" id="ConvexPolygonShape3D_xlp04"]
points = PackedVector3Array(1, -0.5, -1, -1, -0.5, 1, 1, 0.5, 1, 1, -0.5, 1)
[sub_resource type="NavigationMesh" id="NavigationMesh_341ea"]
vertices = PackedVector3Array(-1, 0, -1, -1, 0, 1, 1, 0.75, 1, 1, 0, -1)
polygons = [PackedInt32Array(3, 2, 0), PackedInt32Array(0, 2, 1)]
agent_radius = 0.0
[sub_resource type="ConvexPolygonShape3D" id="ConvexPolygonShape3D_7ivye"]
points = PackedVector3Array(-1, -0.5, -1, 1, -0.5, -1, -1, -0.5, 1, 1, 0.5, 1, 1, -0.5, 1)
[node name="Tiles" type="Node3D"]
[node name="Cube" type="MeshInstance3D" parent="."]
@ -107,13 +107,13 @@ mesh = ExtResource("2_d6bvg")
transform = Transform3D(-1, 0, 8.74228e-08, 0, 1, 0, -8.74228e-08, 0, -1, 2, 0, 2)
mesh = ExtResource("3_7ivye")
[node name="StaticBody3D" type="StaticBody3D" parent="Ramp Outer Corner"]
[node name="CollisionShape3D" type="CollisionShape3D" parent="Ramp Outer Corner/StaticBody3D"]
shape = SubResource("ConvexPolygonShape3D_xlp04")
[node name="NavigationRegion3D" type="NavigationRegion3D" parent="Ramp Outer Corner"]
navigation_mesh = SubResource("NavigationMesh_341ea")
[node name="MeshInstance3D" type="MeshInstance3D" parent="Ramp Outer Corner/NavigationRegion3D"]
mesh = ExtResource("4_vra4g")
[node name="StaticBody3D" type="StaticBody3D" parent="Ramp Outer Corner"]
[node name="CollisionShape3D" type="CollisionShape3D" parent="Ramp Outer Corner/StaticBody3D"]
shape = SubResource("ConvexPolygonShape3D_7ivye")