diff options
author | Daniel Weipert <git@mail.dweipert.de> | 2024-11-24 11:46:03 +0100 |
---|---|---|
committer | Daniel Weipert <git@mail.dweipert.de> | 2024-11-24 11:46:03 +0100 |
commit | b1d9bfe7e80b4d95acd26d0ab6a1ce34ad18d91c (patch) | |
tree | 3bc9cce0c176057fcc2f8b4640a3e23de374875e /player.gd | |
parent | 1a785420ec47c78ac3f95bd0ece08c819653f6e8 (diff) |
Diffstat (limited to 'player.gd')
-rw-r--r-- | player.gd | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -40,10 +40,10 @@ func _process(delta: float) -> void: acc = 0 print(block_chunk_idx) print(chunk_idx) - var chunk = get_tree().current_scene.chunks[chunk_idx.x][chunk_idx.y][chunk_idx.z] - var block = chunk[block_chunk_idx.x][block_chunk_idx.y][block_chunk_idx.z] - print(block) - print(Main.BlockType.keys()[block.type]) + var chunk: Chunk = get_tree().current_scene.chunks[chunk_idx.x][chunk_idx.y][chunk_idx.z] + var block: Block = chunk.blocks[block_chunk_idx.x][block_chunk_idx.y][block_chunk_idx.z] + print(point, "==", block.position) #?? + print(Block.Type.keys()[block.type]) func _physics_process(delta: float) -> void: |