Pendulm Physics Simulation

I tried asking the beginners section about my project but did not get a lot of response. I was wondering if there is a way to build a sphere and a cylinder and make both of them work simulateosly to simulate a pendulum using calculated values from a Runge Kutta equation which depended on:
gravity, omega, length of the pendulum, mass of pendulum, and step size. If so how would I setup the OpenGL code in the drawing function to accept the values to plot the x and y coordinates for its movements.

I answered it in the beginners form.
http://www.opengl.org/discussion_boards/ubb/Forum2/HTML/004343.html