Optimized buildings a bit

This commit is contained in:
2025-03-14 16:51:50 +03:00
parent 85900e3ef1
commit 7eceed3ee5
138 changed files with 5655 additions and 338 deletions

View File

@@ -1,4 +1,4 @@
[gd_scene load_steps=5 format=2]
[gd_scene load_steps=6 format=2]
[ext_resource path="res://astream/terrain/details/residental-house6.gltf" type="PackedScene" id=1]
[ext_resource path="res://astream/terrain/details/parts/door1-portal.tscn" type="PackedScene" id=2]
@@ -7,29 +7,50 @@
[sub_resource type="BoxShape" id=1]
extents = Vector3( 0.7, 1, 0.6 )
[node name="residental-house6" instance=ExtResource( 1 )]
[sub_resource type="OccluderShapePolygon" id=2]
polygon_points = PoolVector2Array( 12.0656, 0.334031, 12.1811, 6.20001, -12.3231, 6.43118, -12.1786, 0.10286 )
[node name="residental-house-stair" parent="." index="0" instance=ExtResource( 3 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -10, 0, -12 )
[node name="residental-house6" type="Spatial"]
[node name="door1-portal" parent="." index="3" instance=ExtResource( 2 )]
[node name="door1-portal" parent="." instance=ExtResource( 2 )]
transform = Transform( -1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, -9, 1, -11.5131 )
[node name="enter_destination" type="Spatial" parent="door1-portal" index="5" groups=["smart_object"]]
[node name="enter_destination" type="Spatial" parent="door1-portal" groups=["smart_object"]]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0.905, 0, 0.65 )
[node name="actions" type="Node" parent="door1-portal/enter_destination" index="0"]
[node name="actions" type="Node" parent="door1-portal/enter_destination"]
[node name="EnterDestination" type="GoapActionData" parent="door1-portal/enter_destination/actions" index="0"]
preconditions = {
"have_ped_destination": 1
}
variation = 33
cost = 100
distance = 0.0
[node name="EnterDestination" type="Node" parent="door1-portal/enter_destination/actions"]
[node name="Area" type="Area" parent="door1-portal/enter_destination" index="1"]
[node name="Area" type="Area" parent="door1-portal/enter_destination"]
[node name="CollisionShape" type="CollisionShape" parent="door1-portal/enter_destination/Area" index="0"]
[node name="CollisionShape" type="CollisionShape" parent="door1-portal/enter_destination/Area"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.1, 0 )
shape = SubResource( 1 )
[node name="MergeGroup" type="MergeGroup" parent="."]
[node name="residental-house-stair" parent="MergeGroup" instance=ExtResource( 3 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -10, 0, -12 )
[node name="residental-house6" parent="MergeGroup" instance=ExtResource( 1 )]
[node name="Occluder" type="Occluder" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 12.8853 )
shape = SubResource( 2 )
[node name="Occluder2" type="Occluder" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 3.43913 )
shape = SubResource( 2 )
[node name="Occluder3" type="Occluder" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -11.9223 )
shape = SubResource( 2 )
[node name="Occluder4" type="Occluder" parent="."]
transform = Transform( -4.37114e-08, 0, -1, 0, 1, 0, 1, 0, -4.37114e-08, -13.5888, 0, 0.504406 )
shape = SubResource( 2 )
[node name="Occluder5" type="Occluder" parent="."]
transform = Transform( -4.37114e-08, 0, -1, 0, 1, 0, 1, 0, -4.37114e-08, 13.7113, 0, 0.504406 )
shape = SubResource( 2 )