The pendulum shuld oscillate till its time period which is provided with the argument of that function along with the length of wire.plz help me to provide me the source code..or help me that how will i make it?
I want a function which is written in C.It should allow a pendulum to oscillate for a given time at 7 degree.?
Consider the geometric properties of a circle when making this function. The length of the wire should correspond to the radius of the circle. (In your case, you are actually doing a 7-degree arc, but it is the same concept)
From there, have your computer calculate the number of seconds * your framerate. This will give you the total number of frames you have to move the pendulum 7 degrees.
Then have it calculate the distance the pendulum will have to move each frame in order to move 7 deg.
Then have the computer do it: Move the pendulum the correct distance each frame cycle.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment