Optimal leap angle of legged and legless insects in a landscape of uniformly distributed random obstacles