def turn_random(bee): vel = 0.2 direction = random.choice([-1, 1]) bee.set_vel(direction * vel, -direction * vel) sleep(random.uniform(1, 5))
def turn_random(bee): vel = 0.2 direction = random.choice([-1,1]) bee.set_vel(direction*vel, -direction*vel) sleep(random.uniform(1,5))
def go_straight(bee): vel = 0.5 bee.set_vel(vel, vel)
def go_straight(bee): vel = 0.5 bee.set_vel(vel,vel)