TowerGame/tiles.tscn

37 lines
1.7 KiB
Plaintext
Raw Normal View History

2025-04-20 20:55:30 +01:00
[gd_scene load_steps=5 format=3 uid="uid://bexxobgiojrfa"]
[sub_resource type="BoxMesh" id="BoxMesh_qra7f"]
size = Vector3(2, 1, 2)
[sub_resource type="ConcavePolygonShape3D" id="ConcavePolygonShape3D_7h0kd"]
data = PackedVector3Array(-1, 0.5, 1, 1, 0.5, 1, -1, -0.5, 1, 1, 0.5, 1, 1, -0.5, 1, -1, -0.5, 1, 1, 0.5, -1, -1, 0.5, -1, 1, -0.5, -1, -1, 0.5, -1, -1, -0.5, -1, 1, -0.5, -1, 1, 0.5, 1, 1, 0.5, -1, 1, -0.5, 1, 1, 0.5, -1, 1, -0.5, -1, 1, -0.5, 1, -1, 0.5, -1, -1, 0.5, 1, -1, -0.5, -1, -1, 0.5, 1, -1, -0.5, 1, -1, -0.5, -1, 1, 0.5, 1, -1, 0.5, 1, 1, 0.5, -1, -1, 0.5, 1, -1, 0.5, -1, 1, 0.5, -1, -1, -0.5, 1, 1, -0.5, 1, -1, -0.5, -1, 1, -0.5, 1, 1, -0.5, -1, -1, -0.5, -1)
[sub_resource type="NavigationMesh" id="NavigationMesh_qra7f"]
vertices = PackedVector3Array(-0.75, 1, -0.75, -0.75, 1, 0.75, 0.75, 1, 0.75, 0.75, 1, -0.75)
polygons = [PackedInt32Array(3, 2, 0), PackedInt32Array(0, 2, 1)]
sample_partition_type = 2
agent_radius = 0.2
region_min_size = 1.0
filter_walkable_low_height_spans = true
[sub_resource type="QuadMesh" id="QuadMesh_7h0kd"]
size = Vector2(2, 2)
center_offset = Vector3(0, 0.5, 0)
orientation = 1
[node name="Tiles" type="Node3D"]
[node name="Cube" type="MeshInstance3D" parent="."]
mesh = SubResource("BoxMesh_qra7f")
[node name="StaticBody3D" type="StaticBody3D" parent="Cube"]
[node name="CollisionShape3D" type="CollisionShape3D" parent="Cube/StaticBody3D"]
shape = SubResource("ConcavePolygonShape3D_7h0kd")
[node name="NavigationRegion3D" type="NavigationRegion3D" parent="Cube"]
navigation_mesh = SubResource("NavigationMesh_qra7f")
[node name="MeshInstance3D" type="MeshInstance3D" parent="Cube/NavigationRegion3D"]
mesh = SubResource("QuadMesh_7h0kd")