my voxels are not voxels actually, just a 3d array of cubes. For picking I used Bresenham's line algorithm, works pretty fast for that purpose