diff options
author | Daniel Weipert <git@mail.dweipert.de> | 2025-03-01 17:56:20 +0100 |
---|---|---|
committer | Daniel Weipert <git@mail.dweipert.de> | 2025-03-01 17:56:20 +0100 |
commit | 342f12f6ec12c476af813316c37b03041cbe17a4 (patch) | |
tree | 9a3c86bc05c11b4f26266f45feac6490af514fef /block.gd | |
parent | f0142a29c9a36d2b87b19b763d88c5ca2245c7dc (diff) |
Diffstat (limited to 'block.gd')
-rw-r--r-- | block.gd | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -225,7 +225,8 @@ var BLOCK_TYPES = { }, } -var position: Vector3 +var position: Vector3i +var global_position: Vector3i var type: Type @@ -241,7 +242,7 @@ func add_face(surface_tool: SurfaceTool, face: Face): for idx in FACES[face].size(): var triangle = FACES[face][idx] var triangle_positions = triangle.map(func(item): - return (item * (BLOCK_SIZE * 0.5)) + position + (BLOCK_SIZE * 0.5) + return (item * (BLOCK_SIZE * 0.5)) + Vector3(global_position) + (BLOCK_SIZE * 0.5) ) var uvs = FACE_UVS[face][idx] |