Exemplo n.º 1
0
 public Vector3i WorldToVoxel(Vector3i worldPosition)
 {
     return(WorldToVoxel(worldPosition * 1f).RoundToInt3());
 }
Exemplo n.º 2
0
        string GetFilePath(string dirPath, Vector3i p)
        {
            string fileName = string.Join(".", p.x, p.y, p.z, Extension);

            return(Path.Combine(dirPath, fileName));
        }
Exemplo n.º 3
0
 Vector3i LocalToGlobal(Vector3i chunkPosition, Vector3i blockPosition)
 {
     return(VoxelUtils.LocalToWorld(VoxelConsts.ChunkLength, chunkPosition, blockPosition));
 }