Hi all...
Does anybody know how to implement as circular orbit for a point (something to move in a circle)
I've tried lots of methods depending on (cos , sin) but it ain't that good
P.S. The language isn't a problem.. I know'em all
Printable View
Hi all...
Does anybody know how to implement as circular orbit for a point (something to move in a circle)
I've tried lots of methods depending on (cos , sin) but it ain't that good
P.S. The language isn't a problem.. I know'em all
Ok since the language is not a problem (you know'em all) my answer in greek:
Allaxe se polikes syntetagmenes kai ayxise diadoxika ti gwnia theta apo mithen mehri dyo pi.
Easiest way: do it in cylindrical polars. i.e. change your coordinate system to r and theta. Then just increment theta with each time step, or use the angular velocity to work out where you are around the orbit. Angular velocity is, as you might expect, 2Pi/T where T is the period of rotation (using radians).
If you must do it in cartesians, then X = r cos theta, Y = r sin theta.
zaza
I've been doing it this way but I didn't realise this until you explained it to me ;)Quote:
Originally Posted by zaza
Thank you very much!
Exactly what i suggested in greek ;)Quote:
Originally Posted by zaza