I want to make something move in a circular motion. I want to know if there is an easier, less complicated way of doing so than this:
Creating 2 variables for the position of the object, one X and one Y
Have the X move back and fourth like a pendeulum and the Y move up and down the same way. I would have to have it accelerate and decelerate aslo and I would have to start the x direction all the way to one side and the Y in the middle and UGH! It is all so confusing.
Use polar coordinates (angle and distance from centre of circle) + an angular velocity (+ for clockwise motion and - for counterclockwise motion). in your main program. That way it makes it easy to imagine where and what your 'something' is doing at any particular time. Then write a function which converts from polar to rectangular coordinates (just use sin and cos to quickly convert) and use those coordinates to plot the object.