fix entity spawn for special scene + fix wagon movement
This commit is contained in:
@@ -82,6 +82,7 @@ var wire_connections: Dictionary = {}
|
|||||||
var chunk_candidate_cache: Dictionary = {} #node cache (metadata)
|
var chunk_candidate_cache: Dictionary = {} #node cache (metadata)
|
||||||
var prop_candidate_cache: Dictionary = {}
|
var prop_candidate_cache: Dictionary = {}
|
||||||
var entity_candidate_cache: Dictionary = {}
|
var entity_candidate_cache: Dictionary = {}
|
||||||
|
var static_entity_spawn_roots: Dictionary = {}
|
||||||
var pending_generation_cells: Array[Vector2i] = []
|
var pending_generation_cells: Array[Vector2i] = []
|
||||||
var pending_cleanup_cells: Array[Vector2i] = []
|
var pending_cleanup_cells: Array[Vector2i] = []
|
||||||
var pending_wire_cells: Array[Vector2i] = []
|
var pending_wire_cells: Array[Vector2i] = []
|
||||||
@@ -116,6 +117,7 @@ func _ready() -> void:
|
|||||||
_warm_rail_chunk_catalogue()
|
_warm_rail_chunk_catalogue()
|
||||||
#set unique pieces
|
#set unique pieces
|
||||||
_update_set_pieces()
|
_update_set_pieces()
|
||||||
|
_spawn_entities_for_static_spawn_points()
|
||||||
|
|
||||||
func _update_set_pieces() -> void:
|
func _update_set_pieces() -> void:
|
||||||
var set_pieces = get_tree().get_nodes_in_group("set_pieces")
|
var set_pieces = get_tree().get_nodes_in_group("set_pieces")
|
||||||
@@ -766,6 +768,66 @@ func _spawn_prop_for_marker(marker: Node) -> void:
|
|||||||
marker.add_child(prop_node)
|
marker.add_child(prop_node)
|
||||||
prop_node.transform = Transform3D.IDENTITY
|
prop_node.transform = Transform3D.IDENTITY
|
||||||
|
|
||||||
|
func _get_static_entity_spawn_root(root: Node) -> Node:
|
||||||
|
var current: Node = root
|
||||||
|
|
||||||
|
while current != null and current != get_tree().root:
|
||||||
|
var spawn_points: Array[Node] = []
|
||||||
|
collect_all_entity_spawn_points(current, spawn_points)
|
||||||
|
if not spawn_points.is_empty():
|
||||||
|
return current
|
||||||
|
current = current.get_parent()
|
||||||
|
|
||||||
|
return null
|
||||||
|
|
||||||
|
func _get_static_spawn_chunk_root_from_point(spawn_point: Node) -> Node:
|
||||||
|
var current: Node = spawn_point
|
||||||
|
|
||||||
|
while current != null and current != get_tree().root:
|
||||||
|
var info_list: Array[Node] = []
|
||||||
|
collect_all_chunkinfo(current, info_list)
|
||||||
|
if not info_list.is_empty():
|
||||||
|
return current
|
||||||
|
current = current.get_parent()
|
||||||
|
|
||||||
|
return null
|
||||||
|
|
||||||
|
func _spawn_entities_for_static_spawn_points() -> void:
|
||||||
|
var current_scene = get_tree().current_scene
|
||||||
|
if current_scene == null:
|
||||||
|
return
|
||||||
|
|
||||||
|
var spawn_points: Array[Node] = []
|
||||||
|
collect_all_entity_spawn_points(current_scene, spawn_points)
|
||||||
|
for spawn_point in spawn_points:
|
||||||
|
var spawn_root = _get_static_spawn_chunk_root_from_point(spawn_point)
|
||||||
|
if spawn_root == null:
|
||||||
|
continue
|
||||||
|
|
||||||
|
var point_node = spawn_point as Node3D
|
||||||
|
var grid_pos = Vector2i.ZERO
|
||||||
|
if point_node != null:
|
||||||
|
grid_pos = Vector2i(roundi(point_node.global_position.x / chunk_size), roundi(point_node.global_position.z / chunk_size))
|
||||||
|
_spawn_entities_for_static_obstacle(spawn_root, grid_pos)
|
||||||
|
|
||||||
|
func _spawn_entities_for_static_obstacle(root: Node, grid_pos: Vector2i) -> void:
|
||||||
|
if root == null or not is_instance_valid(root):
|
||||||
|
return
|
||||||
|
|
||||||
|
var spawn_root = _get_static_entity_spawn_root(root)
|
||||||
|
if spawn_root == null or not is_instance_valid(spawn_root):
|
||||||
|
return
|
||||||
|
|
||||||
|
var root_id: int = spawn_root.get_instance_id()
|
||||||
|
if static_entity_spawn_roots.has(root_id):
|
||||||
|
var tracked_root = static_entity_spawn_roots[root_id]
|
||||||
|
if is_instance_valid(tracked_root):
|
||||||
|
return
|
||||||
|
static_entity_spawn_roots.erase(root_id)
|
||||||
|
|
||||||
|
static_entity_spawn_roots[root_id] = spawn_root
|
||||||
|
_spawn_entities_for_chunk(spawn_root, _choose_biome_name_by_cell(grid_pos))
|
||||||
|
|
||||||
func _spawn_entities_for_chunk(root: Node, biome_name: String) -> void:
|
func _spawn_entities_for_chunk(root: Node, biome_name: String) -> void:
|
||||||
if entity_pool == null or not "available_entities" in entity_pool:
|
if entity_pool == null or not "available_entities" in entity_pool:
|
||||||
return
|
return
|
||||||
@@ -930,6 +992,8 @@ func _register_cell_with_ray(grid_pos: Vector2i) -> bool:
|
|||||||
|
|
||||||
if have_lamppost:
|
if have_lamppost:
|
||||||
_queue_lamppost_wire_connection(grid_pos)
|
_queue_lamppost_wire_connection(grid_pos)
|
||||||
|
|
||||||
|
_spawn_entities_for_static_obstacle(root_chunk, grid_pos)
|
||||||
|
|
||||||
return true
|
return true
|
||||||
return false
|
return false
|
||||||
|
|||||||
@@ -1,9 +1,18 @@
|
|||||||
[gd_resource type="Resource" script_class="EntityPool" format=3 uid="uid://cmd6s6thq4f7r"]
|
[gd_resource type="Resource" script_class="EntityPool" format=3 uid="uid://cmd6s6thq4f7r"]
|
||||||
|
|
||||||
[ext_resource type="PackedScene" uid="uid://clx701xdwelgx" path="res://core/ai/agents/base/ai_base.tscn" id="1_0kfj8"]
|
[ext_resource type="PackedScene" uid="uid://dd8wn62anbts8" path="res://core/ai/agents/cow/ai_cow.tscn" id="1_iqga3"]
|
||||||
[ext_resource type="Script" uid="uid://53ryr0fsqiq7" path="res://core/biome_generator/entity_pool.gd" id="1_vccp2"]
|
[ext_resource type="Script" uid="uid://53ryr0fsqiq7" path="res://core/biome_generator/entity_pool.gd" id="1_vccp2"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://c2hg6hu2y5srb" path="res://core/ai/agents/pig/ai_pig.tscn" id="2_76rvd"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://2md4l83fy8kr" path="res://core/ai/agents/pug/ai_pug.tscn" id="3_hq17p"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://cayakdk7gmlyg" path="res://core/ai/agents/horse/ai_horse.tscn" id="4_5yjl1"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://mvh2v6v72stt" path="res://core/ai/agents/human/ai_human.tscn" id="5_xd1cg"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://bs1bdtm7jdtgb" path="res://core/ai/agents/sheep/ai_sheep.tscn" id="6_ql0wl"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://ceqxsqfiotm5j" path="res://core/ai/agents/human/ai_farmer.tscn" id="7_hhs8l"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://bdqeshcwwnyc4" path="res://core/ai/agents/human/ai_citizen.tscn" id="8_8l6th"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://bbseno7clbepx" path="res://core/ai/agents/human/ai_citizen_sitter.tscn" id="9_x3pn3"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://bnnuke5e7e1yr" path="res://core/ai/agents/human/ai_citizen_walker.tscn" id="10_ctysb"]
|
||||||
|
|
||||||
[resource]
|
[resource]
|
||||||
script = ExtResource("1_vccp2")
|
script = ExtResource("1_vccp2")
|
||||||
name = "Entity Pool"
|
name = "Entity Pool"
|
||||||
available_entities = Array[PackedScene]([ExtResource("1_0kfj8")])
|
available_entities = Array[PackedScene]([ExtResource("1_iqga3"), ExtResource("2_76rvd"), ExtResource("3_hq17p"), ExtResource("4_5yjl1"), ExtResource("5_xd1cg"), ExtResource("6_ql0wl"), ExtResource("7_hhs8l"), ExtResource("8_8l6th"), ExtResource("9_x3pn3"), ExtResource("10_ctysb")])
|
||||||
|
|||||||
@@ -538,10 +538,6 @@ func _snap_wagons_to_progress(total_length: float = 0.0) -> void:
|
|||||||
if total_length <= 0.0:
|
if total_length <= 0.0:
|
||||||
return
|
return
|
||||||
|
|
||||||
var direction: float = 1.0
|
|
||||||
if train_speed < 0.0:
|
|
||||||
direction = -1.0
|
|
||||||
|
|
||||||
for i in range(wagon_instances.size()):
|
for i in range(wagon_instances.size()):
|
||||||
var wagon: Node3D = wagon_instances[i]
|
var wagon: Node3D = wagon_instances[i]
|
||||||
if not is_instance_valid(wagon):
|
if not is_instance_valid(wagon):
|
||||||
@@ -551,7 +547,7 @@ func _snap_wagons_to_progress(total_length: float = 0.0) -> void:
|
|||||||
if i < wagon_progress_offsets.size():
|
if i < wagon_progress_offsets.size():
|
||||||
wagon_offset = wagon_progress_offsets[i]
|
wagon_offset = wagon_progress_offsets[i]
|
||||||
|
|
||||||
var wagon_progress: float = train_progress - direction * wagon_offset
|
var wagon_progress: float = train_progress - wagon_offset
|
||||||
|
|
||||||
var vehicle_progress: float = wrapf(wagon_progress, 0.0, total_length)
|
var vehicle_progress: float = wrapf(wagon_progress, 0.0, total_length)
|
||||||
var center_position: Vector3 = to_global(curve.sample_baked(vehicle_progress, true))
|
var center_position: Vector3 = to_global(curve.sample_baked(vehicle_progress, true))
|
||||||
|
|||||||
@@ -73,19 +73,19 @@ have_lamppost = true
|
|||||||
connection_left = [NodePath("PaloLuce/sx")]
|
connection_left = [NodePath("PaloLuce/sx")]
|
||||||
connection_right = [NodePath("PaloLuce/dx")]
|
connection_right = [NodePath("PaloLuce/dx")]
|
||||||
|
|
||||||
[node name="Argini_001" parent="." index="0" unique_id=439223507]
|
[node name="Argini_001" parent="." index="0" unique_id=1474838784]
|
||||||
surface_material_override/0 = ExtResource("2_ewqv4")
|
surface_material_override/0 = ExtResource("2_ewqv4")
|
||||||
|
|
||||||
[node name="Chunk_005" parent="." index="1" unique_id=1955568282]
|
[node name="Chunk_005" parent="." index="1" unique_id=844192036]
|
||||||
surface_material_override/0 = ExtResource("2_ewqv4")
|
surface_material_override/0 = ExtResource("2_ewqv4")
|
||||||
|
|
||||||
[node name="Chunk_036" parent="." index="2" unique_id=1808067169 groups=["weather_node"]]
|
[node name="Chunk_036" parent="." index="2" unique_id=1584066508 groups=["weather_node"]]
|
||||||
surface_material_override/0 = ExtResource("3_4d433")
|
surface_material_override/0 = ExtResource("3_4d433")
|
||||||
|
|
||||||
[node name="Chunk_037" parent="." index="3" unique_id=1338393481 groups=["weather_node"]]
|
[node name="Chunk_037" parent="." index="3" unique_id=1100757609 groups=["weather_node"]]
|
||||||
surface_material_override/0 = ExtResource("3_4d433")
|
surface_material_override/0 = ExtResource("3_4d433")
|
||||||
|
|
||||||
[node name="Water_003" parent="." index="4" unique_id=1175879696]
|
[node name="Water_003" parent="." index="4" unique_id=1047599796]
|
||||||
surface_material_override/0 = ExtResource("4_r06ll")
|
surface_material_override/0 = ExtResource("4_r06ll")
|
||||||
|
|
||||||
[node name="grass" type="Node3D" parent="." index="5" unique_id=924191951 groups=["weather_vegetables_node", "wind_node"]]
|
[node name="grass" type="Node3D" parent="." index="5" unique_id=924191951 groups=["weather_vegetables_node", "wind_node"]]
|
||||||
|
|||||||
@@ -106,31 +106,31 @@ west = true
|
|||||||
river_north = true
|
river_north = true
|
||||||
river_south = true
|
river_south = true
|
||||||
|
|
||||||
[node name="Argini_F_003" parent="." index="0" unique_id=122748439]
|
[node name="Argini_F_003" parent="." index="0" unique_id=1009306056]
|
||||||
surface_material_override/0 = ExtResource("2_wqn5s")
|
surface_material_override/0 = ExtResource("2_wqn5s")
|
||||||
|
|
||||||
[node name="Flower_021" parent="." index="1" unique_id=154759667]
|
[node name="Flower_021" parent="." index="1" unique_id=1909726834]
|
||||||
visible = false
|
visible = false
|
||||||
|
|
||||||
[node name="FlowerG_020" parent="." index="2" unique_id=929356567]
|
[node name="FlowerG_020" parent="." index="2" unique_id=1120293998]
|
||||||
visible = false
|
visible = false
|
||||||
|
|
||||||
[node name="MSH_Staccioanta_1_019" parent="." index="3" unique_id=982832464]
|
[node name="MSH_Staccioanta_1_019" parent="." index="3" unique_id=1851590689]
|
||||||
surface_material_override/0 = ExtResource("3_amhor")
|
surface_material_override/0 = ExtResource("3_amhor")
|
||||||
|
|
||||||
[node name="Strada_011" parent="." index="4" unique_id=1150878040 groups=["weather_node"]]
|
[node name="Strada_011" parent="." index="4" unique_id=603216127 groups=["weather_node"]]
|
||||||
surface_material_override/0 = ExtResource("4_amhor")
|
surface_material_override/0 = ExtResource("4_amhor")
|
||||||
|
|
||||||
[node name="Water_F_003" parent="." index="5" unique_id=1724674810]
|
[node name="Water_F_003" parent="." index="5" unique_id=1353723938]
|
||||||
surface_material_override/0 = ExtResource("6_es1d0")
|
surface_material_override/0 = ExtResource("6_es1d0")
|
||||||
|
|
||||||
[node name="bridge" parent="." index="6" unique_id=244883264 groups=["weather_node"]]
|
[node name="bridge" parent="." index="6" unique_id=1469108610 groups=["weather_node"]]
|
||||||
surface_material_override/0 = ExtResource("6_062h7")
|
surface_material_override/0 = ExtResource("6_062h7")
|
||||||
surface_material_override/1 = ExtResource("8_mlqo1")
|
surface_material_override/1 = ExtResource("8_mlqo1")
|
||||||
surface_material_override/2 = ExtResource("8_0snf2")
|
surface_material_override/2 = ExtResource("8_0snf2")
|
||||||
surface_material_override/3 = SubResource("ShaderMaterial_i6s7h")
|
surface_material_override/3 = SubResource("ShaderMaterial_i6s7h")
|
||||||
|
|
||||||
[node name="grass" parent="." index="7" unique_id=406919710]
|
[node name="grass" parent="." index="7" unique_id=1730032194]
|
||||||
surface_material_override/0 = ExtResource("2_wqn5s")
|
surface_material_override/0 = ExtResource("2_wqn5s")
|
||||||
|
|
||||||
[node name="grass2" type="Node3D" parent="." index="8" unique_id=1023384553 groups=["weather_vegetables_node", "wind_node"]]
|
[node name="grass2" type="Node3D" parent="." index="8" unique_id=1023384553 groups=["weather_vegetables_node", "wind_node"]]
|
||||||
|
|||||||
@@ -24,6 +24,7 @@
|
|||||||
[ext_resource type="ArrayMesh" uid="uid://bg5rfu7tyl3p8" path="res://tgcc/chunk/prop/tree/bambù/Bambu.res" id="23_4e4me"]
|
[ext_resource type="ArrayMesh" uid="uid://bg5rfu7tyl3p8" path="res://tgcc/chunk/prop/tree/bambù/Bambu.res" id="23_4e4me"]
|
||||||
[ext_resource type="PackedScene" uid="uid://r720wolh815q" path="res://tgcc/chunk/prop/vase/vase_3.tscn" id="23_f0wug"]
|
[ext_resource type="PackedScene" uid="uid://r720wolh815q" path="res://tgcc/chunk/prop/vase/vase_3.tscn" id="23_f0wug"]
|
||||||
[ext_resource type="Script" uid="uid://cp1pb5dnuojg3" path="res://tgcc/chunk/prop/tree/bambù/bambu.gd" id="24_3y7hw"]
|
[ext_resource type="Script" uid="uid://cp1pb5dnuojg3" path="res://tgcc/chunk/prop/tree/bambù/bambu.gd" id="24_3y7hw"]
|
||||||
|
[ext_resource type="Script" uid="uid://c5ercbqy7srx3" path="res://core/biome_generator/entity_spawn_point.gd" id="25_3y7hw"]
|
||||||
|
|
||||||
[sub_resource type="PlaneMesh" id="PlaneMesh_t63l0"]
|
[sub_resource type="PlaneMesh" id="PlaneMesh_t63l0"]
|
||||||
size = Vector2(0.5, 0.5)
|
size = Vector2(0.5, 0.5)
|
||||||
@@ -73,6 +74,13 @@ instance_count = 27
|
|||||||
mesh = ExtResource("23_4e4me")
|
mesh = ExtResource("23_4e4me")
|
||||||
buffer = PackedFloat32Array(-0.06664866, -5.194634, -2.2706466e-07, -0.2425, 0, -3.0246346e-07, 6.9195576, 0, -5.194634, 0.06664866, 2.9133056e-09, -2.9575, -1.1421599, -4.4487686, -1.9446185e-07, 0.2425, 0, -3.2404853e-07, 7.4133663, 0, -4.4487686, 1.1421599, 4.9925397e-08, -2.9575, -0.046814755, 4.874615, 2.1307619e-07, -0.2425, 0, -3.1915494e-07, 7.3014135, 0, 4.874615, 0.046814755, 2.046338e-09, -2.5025, -2.237415, 4.8654275, 2.1267459e-07, 0.2425, 0, -3.2826165e-07, 7.509751, 0, 4.8654275, 2.237415, 9.7800516e-08, -2.5025, 2.552968, 3.664362, 1.6017435e-07, -0.2425, 0, -3.6221567e-07, 8.286529, 0, 3.664362, -2.552968, -1.1159378e-07, -2.0475, 1.8105153, 4.50349, 1.968538e-07, 0.2425, 0, -2.628582e-07, 6.013495, 0, 4.50349, -1.8105153, -7.9140136e-08, -2.0475, -1.9527054, 4.725312, 2.0654996e-07, -0.2425, 0, -3.321968e-07, 7.599777, 0, 4.725312, 1.9527054, 8.535547e-08, -1.5925, -4.520556, 1.8626103, 8.1417284e-08, 0.2425, 0, -2.7255854e-07, 6.2354126, 0, 1.8626103, 4.520556, 1.9759977e-07, -1.5925, -1.5101467, 5.1146483, 2.2356838e-07, -0.2425, 0, -3.674509e-07, 8.406297, 0, 5.1146483, 1.5101467, 6.6010614e-08, -1.1375, -0.39667818, 5.0150795, 2.1921609e-07, 0.2425, 0, -3.5219875e-07, 8.057368, 0, 5.0150795, 0.39667818, 1.7339353e-08, -1.1375, 4.910238, 2.163411, 9.456569e-08, -0.2425, 0, -2.2457701e-07, 5.137723, 0, 2.163411, -4.910238, -2.1463332e-07, -0.6825, -4.515354, 0.7853641, 3.4329354e-08, 0.2425, 0, -2.379107e-07, 5.4427624, 0, 0.7853641, 4.515354, 1.973724e-07, -0.6825, -4.518371, -1.6865913, -7.372324e-08, -0.2425, 0, -2.4742545e-07, 5.6604347, 0, -1.6865913, 4.518371, 1.9750428e-07, -0.2275, 1.1408135, -5.1769686, -2.2629249e-07, 0.2425, 0, -3.66561e-07, 8.385939, 0, -5.1769686, -1.1408135, -4.986654e-08, -0.2275, 3.315373, 3.248334, 1.4198919e-07, -0.2425, 0, -3.418649e-07, 7.820957, 0, 3.248334, -3.315373, -1.4491955e-07, 0.2275, 4.424317, -2.0163426, -8.8137135e-08, 0.2425, 0, -3.3949976e-07, 7.7668495, 0, -2.0163426, -4.424317, -1.9339303e-07, 0.2275, 4.644195, -1.1235999, -4.911411e-08, -0.2425, 0, -3.2845583e-07, 7.5141935, 0, -1.1235999, -4.644195, -2.0300422e-07, 0.6825, -5.0032973, 0.9244527, 4.0409113e-08, 0.2425, 0, -3.625047e-07, 8.29314, 0, 0.9244527, 5.0032973, 2.1870108e-07, 0.6825, -3.8264813, 3.711105, 1.6221756e-07, -0.2425, 0, -2.903106e-07, 6.641532, 0, 3.711105, 3.8264813, 1.6726081e-07, 1.1375, -5.329773, -0.18204457, -7.9574205e-09, 0.2425, 0, -2.888753e-07, 6.6086965, 0, -0.18204457, 5.329773, 2.3297177e-07, 1.1375, -2.5650833, -4.3976808, -1.9222873e-07, -0.2425, 0, -3.212945e-07, 7.3503613, 0, -4.3976808, 2.5650833, 1.1212335e-07, 1.5925, -2.5395496, -3.9127095, -1.7102997e-07, 0.2425, 0, -3.4615263e-07, 7.9190493, 0, -3.9127095, 2.5395496, 1.1100724e-07, 1.5925, 3.0145772, -3.716389, -1.6244852e-07, -0.2425, 0, -2.9848255e-07, 6.828485, 0, -3.716389, -3.0145772, -1.3177136e-07, 2.0475, 2.23483, 4.2739015, 1.8681817e-07, 0.2425, 0, -3.0729115e-07, 7.030002, 0, 4.2739015, -2.23483, -9.768752e-08, 2.0475, -2.2681458, -4.1759634, -1.8253716e-07, -0.2425, 0, -2.7874702e-07, 6.3769884, 0, -4.1759634, 2.2681458, 9.9143804e-08, 2.5025, 1.8609717, 4.9811106, 2.1773126e-07, 0.2425, 0, -3.8023688e-07, 8.698806, 0, 4.9811106, -1.8609717, -8.1345654e-08, 2.5025, 4.8748484, -0.49008697, -2.1422382e-08, -0.2425, 0, -2.3368244e-07, 5.346031, 0, -0.49008697, -4.8748484, -2.130864e-07, 2.9575)
|
buffer = PackedFloat32Array(-0.06664866, -5.194634, -2.2706466e-07, -0.2425, 0, -3.0246346e-07, 6.9195576, 0, -5.194634, 0.06664866, 2.9133056e-09, -2.9575, -1.1421599, -4.4487686, -1.9446185e-07, 0.2425, 0, -3.2404853e-07, 7.4133663, 0, -4.4487686, 1.1421599, 4.9925397e-08, -2.9575, -0.046814755, 4.874615, 2.1307619e-07, -0.2425, 0, -3.1915494e-07, 7.3014135, 0, 4.874615, 0.046814755, 2.046338e-09, -2.5025, -2.237415, 4.8654275, 2.1267459e-07, 0.2425, 0, -3.2826165e-07, 7.509751, 0, 4.8654275, 2.237415, 9.7800516e-08, -2.5025, 2.552968, 3.664362, 1.6017435e-07, -0.2425, 0, -3.6221567e-07, 8.286529, 0, 3.664362, -2.552968, -1.1159378e-07, -2.0475, 1.8105153, 4.50349, 1.968538e-07, 0.2425, 0, -2.628582e-07, 6.013495, 0, 4.50349, -1.8105153, -7.9140136e-08, -2.0475, -1.9527054, 4.725312, 2.0654996e-07, -0.2425, 0, -3.321968e-07, 7.599777, 0, 4.725312, 1.9527054, 8.535547e-08, -1.5925, -4.520556, 1.8626103, 8.1417284e-08, 0.2425, 0, -2.7255854e-07, 6.2354126, 0, 1.8626103, 4.520556, 1.9759977e-07, -1.5925, -1.5101467, 5.1146483, 2.2356838e-07, -0.2425, 0, -3.674509e-07, 8.406297, 0, 5.1146483, 1.5101467, 6.6010614e-08, -1.1375, -0.39667818, 5.0150795, 2.1921609e-07, 0.2425, 0, -3.5219875e-07, 8.057368, 0, 5.0150795, 0.39667818, 1.7339353e-08, -1.1375, 4.910238, 2.163411, 9.456569e-08, -0.2425, 0, -2.2457701e-07, 5.137723, 0, 2.163411, -4.910238, -2.1463332e-07, -0.6825, -4.515354, 0.7853641, 3.4329354e-08, 0.2425, 0, -2.379107e-07, 5.4427624, 0, 0.7853641, 4.515354, 1.973724e-07, -0.6825, -4.518371, -1.6865913, -7.372324e-08, -0.2425, 0, -2.4742545e-07, 5.6604347, 0, -1.6865913, 4.518371, 1.9750428e-07, -0.2275, 1.1408135, -5.1769686, -2.2629249e-07, 0.2425, 0, -3.66561e-07, 8.385939, 0, -5.1769686, -1.1408135, -4.986654e-08, -0.2275, 3.315373, 3.248334, 1.4198919e-07, -0.2425, 0, -3.418649e-07, 7.820957, 0, 3.248334, -3.315373, -1.4491955e-07, 0.2275, 4.424317, -2.0163426, -8.8137135e-08, 0.2425, 0, -3.3949976e-07, 7.7668495, 0, -2.0163426, -4.424317, -1.9339303e-07, 0.2275, 4.644195, -1.1235999, -4.911411e-08, -0.2425, 0, -3.2845583e-07, 7.5141935, 0, -1.1235999, -4.644195, -2.0300422e-07, 0.6825, -5.0032973, 0.9244527, 4.0409113e-08, 0.2425, 0, -3.625047e-07, 8.29314, 0, 0.9244527, 5.0032973, 2.1870108e-07, 0.6825, -3.8264813, 3.711105, 1.6221756e-07, -0.2425, 0, -2.903106e-07, 6.641532, 0, 3.711105, 3.8264813, 1.6726081e-07, 1.1375, -5.329773, -0.18204457, -7.9574205e-09, 0.2425, 0, -2.888753e-07, 6.6086965, 0, -0.18204457, 5.329773, 2.3297177e-07, 1.1375, -2.5650833, -4.3976808, -1.9222873e-07, -0.2425, 0, -3.212945e-07, 7.3503613, 0, -4.3976808, 2.5650833, 1.1212335e-07, 1.5925, -2.5395496, -3.9127095, -1.7102997e-07, 0.2425, 0, -3.4615263e-07, 7.9190493, 0, -3.9127095, 2.5395496, 1.1100724e-07, 1.5925, 3.0145772, -3.716389, -1.6244852e-07, -0.2425, 0, -2.9848255e-07, 6.828485, 0, -3.716389, -3.0145772, -1.3177136e-07, 2.0475, 2.23483, 4.2739015, 1.8681817e-07, 0.2425, 0, -3.0729115e-07, 7.030002, 0, 4.2739015, -2.23483, -9.768752e-08, 2.0475, -2.2681458, -4.1759634, -1.8253716e-07, -0.2425, 0, -2.7874702e-07, 6.3769884, 0, -4.1759634, 2.2681458, 9.9143804e-08, 2.5025, 1.8609717, 4.9811106, 2.1773126e-07, 0.2425, 0, -3.8023688e-07, 8.698806, 0, 4.9811106, -1.8609717, -8.1345654e-08, 2.5025, 4.8748484, -0.49008697, -2.1422382e-08, -0.2425, 0, -2.3368244e-07, 5.346031, 0, -0.49008697, -4.8748484, -2.130864e-07, 2.9575)
|
||||||
|
|
||||||
|
[sub_resource type="NavigationMesh" id="NavigationMesh_2ts68"]
|
||||||
|
vertices = PackedVector3Array(8.984741, 0.25012434, -0.014038086, 9.234741, 0.25012434, -1.0140381, -18.015259, 0.25012434, -18.014038, 17.984741, 0.25012434, 17.985962, 10.984741, 0.25012434, 1.2359619, 9.234741, 0.25012434, 1.2359619, 10.984741, 0.25012434, -1.0140381, 17.984741, 0.25012434, -18.014038, -18.015259, 0.25012434, 17.985962, 11.234741, 0.25012434, 0.23596191)
|
||||||
|
polygons = [PackedInt32Array(2, 1, 0), PackedInt32Array(5, 4, 3), PackedInt32Array(7, 6, 1), PackedInt32Array(5, 8, 0), PackedInt32Array(0, 8, 2), PackedInt32Array(5, 3, 8), PackedInt32Array(1, 2, 7), PackedInt32Array(3, 4, 9), PackedInt32Array(6, 7, 9), PackedInt32Array(9, 7, 3)]
|
||||||
|
border_size = 2.0
|
||||||
|
|
||||||
|
[sub_resource type="PlaneMesh" id="PlaneMesh_14bbt"]
|
||||||
|
|
||||||
[node name="chunk_river_cross_2" unique_id=1083596819 instance=ExtResource("1_kqoel")]
|
[node name="chunk_river_cross_2" unique_id=1083596819 instance=ExtResource("1_kqoel")]
|
||||||
script = ExtResource("2_m5b5r")
|
script = ExtResource("2_m5b5r")
|
||||||
est = true
|
est = true
|
||||||
@@ -80,44 +88,44 @@ west = true
|
|||||||
river_north = true
|
river_north = true
|
||||||
river_south = true
|
river_south = true
|
||||||
|
|
||||||
[node name="Argini_017" parent="." index="0" unique_id=379197264]
|
[node name="Argini_017" parent="." index="0" unique_id=1278311052]
|
||||||
surface_material_override/0 = ExtResource("2_relur")
|
surface_material_override/0 = ExtResource("2_relur")
|
||||||
|
|
||||||
[node name="Cavi_010" parent="." index="1" unique_id=1716469554]
|
[node name="Cavi_010" parent="." index="1" unique_id=815947441]
|
||||||
surface_material_override/0 = ExtResource("3_ik0ps")
|
surface_material_override/0 = ExtResource("3_ik0ps")
|
||||||
surface_material_override/1 = ExtResource("3_ik0ps")
|
surface_material_override/1 = ExtResource("3_ik0ps")
|
||||||
|
|
||||||
[node name="Flower_024" parent="." index="2" unique_id=1343917198]
|
[node name="Flower_024" parent="." index="2" unique_id=526609525]
|
||||||
visible = false
|
visible = false
|
||||||
|
|
||||||
[node name="FlowerG_022" parent="." index="3" unique_id=602062578]
|
[node name="FlowerG_022" parent="." index="3" unique_id=932915098]
|
||||||
visible = false
|
visible = false
|
||||||
|
|
||||||
[node name="Grass_022" parent="." index="4" unique_id=4617116]
|
[node name="Grass_022" parent="." index="4" unique_id=888360582]
|
||||||
surface_material_override/0 = ExtResource("2_relur")
|
surface_material_override/0 = ExtResource("2_relur")
|
||||||
|
|
||||||
[node name="House_C_1_014|Cube_023|Dupli|" parent="House_C_1_014" parent_id_path=PackedInt32Array(390752776) index="0" unique_id=906156044]
|
[node name="House_C_1_014|Cube_023|Dupli|" parent="House_C_1_014" parent_id_path=PackedInt32Array(1429631271) index="0" unique_id=1595448890]
|
||||||
surface_material_override/0 = ExtResource("4_u3ks6")
|
surface_material_override/0 = ExtResource("4_u3ks6")
|
||||||
surface_material_override/1 = ExtResource("5_g7xh4")
|
surface_material_override/1 = ExtResource("5_g7xh4")
|
||||||
|
|
||||||
[node name="Lanterne_010" parent="." index="6" unique_id=787933242]
|
[node name="Lanterne_010" parent="." index="6" unique_id=626116821]
|
||||||
surface_material_override/0 = ExtResource("5_g7xh4")
|
surface_material_override/0 = ExtResource("5_g7xh4")
|
||||||
surface_material_override/1 = ExtResource("4_u3ks6")
|
surface_material_override/1 = ExtResource("4_u3ks6")
|
||||||
|
|
||||||
[node name="MSH_Staccioanta_1_018" parent="." index="7" unique_id=935916972]
|
[node name="MSH_Staccioanta_1_018" parent="." index="7" unique_id=1313624035]
|
||||||
surface_material_override/0 = ExtResource("6_vsnhu")
|
surface_material_override/0 = ExtResource("6_vsnhu")
|
||||||
|
|
||||||
[node name="PaliLuci_008" parent="." index="8" unique_id=185114022]
|
[node name="PaliLuci_008" parent="." index="8" unique_id=156211542]
|
||||||
surface_material_override/0 = ExtResource("7_5lc14")
|
surface_material_override/0 = ExtResource("7_5lc14")
|
||||||
surface_material_override/1 = ExtResource("7_5lc14")
|
surface_material_override/1 = ExtResource("7_5lc14")
|
||||||
|
|
||||||
[node name="Strada_009" parent="." index="9" unique_id=86944054]
|
[node name="Strada_009" parent="." index="9" unique_id=876439490]
|
||||||
surface_material_override/0 = ExtResource("8_17keh")
|
surface_material_override/0 = ExtResource("8_17keh")
|
||||||
|
|
||||||
[node name="Water_F_016" parent="." index="10" unique_id=1050702492]
|
[node name="Water_F_016" parent="." index="10" unique_id=1528601289]
|
||||||
surface_material_override/0 = ExtResource("9_t63l0")
|
surface_material_override/0 = ExtResource("9_t63l0")
|
||||||
|
|
||||||
[node name="bridge_002" parent="." index="11" unique_id=1852524138]
|
[node name="bridge_002" parent="." index="11" unique_id=1594090056]
|
||||||
surface_material_override/0 = ExtResource("5_g7xh4")
|
surface_material_override/0 = ExtResource("5_g7xh4")
|
||||||
surface_material_override/1 = ExtResource("10_0k2sy")
|
surface_material_override/1 = ExtResource("10_0k2sy")
|
||||||
surface_material_override/2 = ExtResource("7_5lc14")
|
surface_material_override/2 = ExtResource("7_5lc14")
|
||||||
@@ -207,3 +215,16 @@ spaziatura_z = 0.455
|
|||||||
scala_correzione_xz = 4.955
|
scala_correzione_xz = 4.955
|
||||||
scala_correzione_y = 5.945
|
scala_correzione_y = 5.945
|
||||||
altezza_massima = 1.5
|
altezza_massima = 1.5
|
||||||
|
|
||||||
|
[node name="NavigationRegion3D" type="NavigationRegion3D" parent="." index="22" unique_id=1584139584]
|
||||||
|
transform = Transform3D(0.24, 0, 0, 0, 0.24, 0, 0, 0, 0.24, 5.644392, 0.15122223, -5.4590206)
|
||||||
|
navigation_mesh = SubResource("NavigationMesh_2ts68")
|
||||||
|
|
||||||
|
[node name="Marker3D" type="Marker3D" parent="NavigationRegion3D" index="0" unique_id=1436348087]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 0)
|
||||||
|
script = ExtResource("25_3y7hw")
|
||||||
|
|
||||||
|
[node name="Floor" type="MeshInstance3D" parent="NavigationRegion3D" index="1" unique_id=518925968]
|
||||||
|
transform = Transform3D(4.606, 0, 0, 0, 4.882, 0, 0, 0, 7.985, 5.7445793, -0.83473957, 0.79198027)
|
||||||
|
visible = false
|
||||||
|
mesh = SubResource("PlaneMesh_14bbt")
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -200,6 +200,7 @@ compositor = SubResource("Compositor_mb5yv")
|
|||||||
rail_path = NodePath("../rail")
|
rail_path = NodePath("../rail")
|
||||||
biome_list = Array[ExtResource("6_jfe74")]([SubResource("Resource_3qrd0")])
|
biome_list = Array[ExtResource("6_jfe74")]([SubResource("Resource_3qrd0")])
|
||||||
entity_pool = ExtResource("34_a2cst")
|
entity_pool = ExtResource("34_a2cst")
|
||||||
|
entity_spawn_probability = 1.0
|
||||||
eye_line = 4
|
eye_line = 4
|
||||||
|
|
||||||
[node name="Terrain" type="MeshInstance3D" parent="." unique_id=219178561]
|
[node name="Terrain" type="MeshInstance3D" parent="." unique_id=219178561]
|
||||||
|
|||||||
Reference in New Issue
Block a user