diff options
Diffstat (limited to 'World.tscn')
-rw-r--r-- | World.tscn | 27 |
1 files changed, 26 insertions, 1 deletions
@@ -1,4 +1,4 @@ -[gd_scene load_steps=9 format=2] +[gd_scene load_steps=7 format=2] [ext_resource path="res://World.gd" type="Script" id=1] [ext_resource path="res://Chunk.tscn" type="PackedScene" id=3] @@ -6,6 +6,12 @@ [sub_resource type="SphereShape" id=24] radius = 500.0 +[sub_resource type="SphereShape" id=25] +radius = 300.0 + +[sub_resource type="SphereShape" id=26] +radius = 150.0 + [sub_resource type="BoxShape" id=23] [node name="World" type="Spatial"] @@ -19,6 +25,20 @@ collision_mask = 32 [node name="Radius" type="CollisionShape" parent="ChunkRenderDistance"] shape = SubResource( 24 ) +[node name="ChunkRenderMid" type="Area" parent="."] +collision_layer = 0 +collision_mask = 32 + +[node name="Radius" type="CollisionShape" parent="ChunkRenderMid"] +shape = SubResource( 25 ) + +[node name="ChunkRenderClose" type="Area" parent="."] +collision_layer = 0 +collision_mask = 32 + +[node name="Radius" type="CollisionShape" parent="ChunkRenderClose"] +shape = SubResource( 26 ) + [node name="Chunks" type="RigidBody" parent="."] collision_layer = 0 collision_mask = 0 @@ -36,4 +56,9 @@ shape = SubResource( 23 ) visible = false collision_layer = 0 +[connection signal="area_entered" from="ChunkRenderDistance" to="." method="_on_ChunkRenderDistance_area_entered"] [connection signal="area_exited" from="ChunkRenderDistance" to="." method="_on_ChunkRenderDistance_area_exited"] +[connection signal="area_entered" from="ChunkRenderMid" to="." method="_on_ChunkRenderMid_area_entered"] +[connection signal="area_exited" from="ChunkRenderMid" to="." method="_on_ChunkRenderMid_area_exited"] +[connection signal="area_entered" from="ChunkRenderClose" to="." method="_on_ChunkRenderClose_area_entered"] +[connection signal="area_exited" from="ChunkRenderClose" to="." method="_on_ChunkRenderClose_area_exited"] |