summaryrefslogtreecommitdiffstats
path: root/World.tscn
blob: db93160de93639c2d27d9dd2161583a927c98e43 (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
[gd_scene load_steps=5 format=2]

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

[sub_resource type="BoxShape" id=23]

[sub_resource type="SphereShape" id=24]
radius = 300.0

[node name="World" type="Spatial"]
script = ExtResource( 1 )
acceleration = 50.0

[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

[node name="ChunkRenderDistance" type="Area" parent="."]
collision_layer = 0
collision_mask = 32

[node name="Radius" type="CollisionShape" parent="ChunkRenderDistance"]
shape = SubResource( 24 )

[connection signal="area_exited" from="ChunkRenderDistance" to="." method="_on_ChunkRenderDistance_area_exited"]