summaryrefslogtreecommitdiffstats
path: root/world/World.tscn
blob: 81b2201926a4a045efc47a5c9a631135f2bb7904 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
[gd_scene load_steps=7 format=2]

[ext_resource path="res://world/World.gd" type="Script" id=1]
[ext_resource path="res://world/chunk/Chunk.tscn" type="PackedScene" id=3]

[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"]
script = ExtResource( 1 )
acceleration = 50.0

[node name="ChunkRenderDistance" type="Area" parent="."]
collision_layer = 0
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
can_sleep = false
axis_lock_linear_y = true
axis_lock_angular_x = true
axis_lock_angular_y = true
axis_lock_angular_z = true
linear_damp = 0.5

[node name="CollisionShape" type="CollisionShape" parent="Chunks"]
shape = SubResource( 23 )

[node name="Chunk" parent="Chunks" instance=ExtResource( 3 )]
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"]