NEW USERS: Shift-click green flag, then press space. INTERFACE: You can move the three bodies of mass around by dragging them before pressing space. holding down "v" and dragging a body of mass will set the velocity and direction. holding down "f" and clicking a body of mass will lock it in the center. pressing "h" will reveal a whole bunch of variables. pressing "p" will switch between velocity and gravity. pressing 1, 2, or 3 will prompt you to set the mass, position, and velocity of the respective bodies of mass. answering "=" to any of the questions will keep the current variable. pressing "z" or "x" will change the scale of distances. pressing the arrow keys will pan. DISTANCE FACTOR: This controls the scale of distances. AUTOCENTER: Will make sure that the 3 bodies of mass don't go off-centre. autocenter is toggled by pressing "c". AUTODISTANCE: Will make sure all 3 bodies of mass are visible. autodistance is toggled by pressing "d". T: time(seconds, as this simulation is sped up). [1, 2, 3]MASS: The mass of the 3 bodies of mass. [1, 2, 3][x, y]: The positions of the three bodies of mass. [1, 2, 3][x, y]v: The velocities of the 3 bodies of mass. SAVING: press "s" to get save data of the initial state that you can copy. press "l" to load save data. FUN SAVE STATES 2 orbits 1, 3 orbits 2: 1000000000000000#0#0#0#0#1000000000000#10000#0#0
WOW LOOK WHO HAD WAY TOO MUCH FREE TIME: ME The three-body problem is: Given the mass, relative position, and respective velocities of 3 bodies of mass, predict the motion of three bodies of mass using classical mechanics. This is an imperfect solution; the simulation needs to run frame-by-frame.