summaryrefslogtreecommitdiffstats
path: root/world
diff options
context:
space:
mode:
authordusoleil <howcansocksbereal@gmail.com>2022-09-20 17:09:33 -0400
committerdusoleil <howcansocksbereal@gmail.com>2022-09-20 17:09:33 -0400
commit02cbcb1a7f09c2b4d9ca89bb25cfc0a8a4354b63 (patch)
treeb754b1e5784bb7018ea24c6a6a4a0868c600753a /world
parent6b009edae79606cf9714474abf66031e343195aa (diff)
downloadgodot_wildjam_49-02cbcb1a7f09c2b4d9ca89bb25cfc0a8a4354b63.tar.gz
godot_wildjam_49-02cbcb1a7f09c2b4d9ca89bb25cfc0a8a4354b63.zip
Billboard chunk coords for debugging
Diffstat (limited to 'world')
-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"