Skip to main content
GameDev.net gamedev.net
🔒 Locked

Circular Motion

Started by gp343 Sep 7, 2003 at 5:32 PM 1 replies 650+ views
Original Post
gp343
gp343
I''ve got a problem. I''ve Got a Circle with radius = 200 pixel I''ve got another circle with radius = 10 pixel what i want is when i click a button, the smaller circle(i.e 10 pixel) should travel around the edge of the large cirle(i.e 200 pixel) clock wise until it reaches where i started. Note, it should start at 12:0 clock on the large circle. The thing is i don''t know anything regarding Trigonometry and circular motion. Can some body please help. The languages i use are(Java, c++, VB, C#,DELPHI). Thanks James
Sneftel
Sneftel
Not too difficult; just use sines and cosines to determine where the center of the smaller circle will be. If the current time is t and the circle moves with angular velocity v (v is measured in radians per unit of time) then the center of the smaller circle will be at the point(R*cos(t*v-(pi/2)), R*sin(t*v-(pi/2))), where R is the radius of the larger circle.


How appropriate. You fight like a cow.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.