diff --git a/simulation.py b/simulation.py index 789a645..571fc73 100644 --- a/simulation.py +++ b/simulation.py @@ -16,8 +16,8 @@ world = solar.World(board, tilt_deg=15) # The world is tilted 15 degrees around HEIGHT = 30 -source = solar.Source(world, pos=(-30, -50, 100)) -target = solar.Target(world, pos=(30, -50, 40)) +source = solar.Source(world, pos=(30, 50, 100)) +target = solar.Target(world, pos=(0, 0, 40)) # Create mirrors in a 3x2 grid for x in range(3): @@ -40,8 +40,10 @@ t = time.time() # Main try: while True: - source.move(10 * math.sin(a * t), 10 * math.cos(a * t)) + source.move(0, 0, 0.1) + #source.move(10 * math.sin(a * t), 10 * math.cos(a * t)) print(source.pos) + print(target.pos) world.update_mirrors_from_source_target(source, target) print_status()