summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--world/chunk/Chunk.gd1
-rw-r--r--world/chunk/Chunk.tscn7
2 files changed, 8 insertions, 0 deletions
diff --git a/world/chunk/Chunk.gd b/world/chunk/Chunk.gd
index 4356caf..a7d18a2 100644
--- a/world/chunk/Chunk.gd
+++ b/world/chunk/Chunk.gd
@@ -11,6 +11,7 @@ onready var _collision_enabled = lod_close.collision_layer
func _ready():
lod_update()
+ $"%Coords".text = str(ChunkLoader.v2_coords(self.transform.origin))
func lod_update():
match lod:
diff --git a/world/chunk/Chunk.tscn b/world/chunk/Chunk.tscn
index 5377ae9..34f40bf 100644
--- a/world/chunk/Chunk.tscn
+++ b/world/chunk/Chunk.tscn
@@ -44,3 +44,10 @@ _mesh = SubResource( 4 )
[node name="lod_close" type="StaticBody" parent="gen_tree"]
collision_layer = 8
collision_mask = 0
+
+[node name="Coords" type="Label3D" parent="."]
+unique_name_in_owner = true
+pixel_size = 0.3
+billboard = 1
+double_sided = false
+text = "OwO"