I'm trying to program a Two Body Problem in SDL 1.2 So in that program I would have two bodies right, my question is what data would I need for each Body? The program is just the two bodies rotating around in a certain orbit. I would create a class for each Body, and store the data in there. I believe I would need the following data mass1, mass2 (mass for each body) speed1, speed2 (initial speed for each object) angle1, angle2 (angle in which direction the object will travel at the start of the simulation) distance (the distance of the objects from each other)
I'm not sure if I'm right or not, would I need any other data for the objects, or is some of the date I said a bit off?