add getCollisions function and voxelAtPosition function