def can_see_chunk(life, chunk_key, distance=True, center_chunk=False):
	_pos = life['pos'][:]
	
	if center_chunk:
		_pos[0] = ((_pos[0]/WORLD_INFO['chunk_size'])*WORLD_INFO['chunk_size'])+WORLD_INFO['chunk_size']/2
		_pos[1] = ((_pos[1]/WORLD_INFO['chunk_size'])*WORLD_INFO['chunk_size'])+WORLD_INFO['chunk_size']/2
	
	return can_see_chunk_from_pos(_pos, chunk_key, distance=distance, vision=sight.get_vision(life))
dataset/ETHPy150Open flags/Reactor-3/alife/chunks.py/can_see_chunk/original