circle move - circular motion

Posted By: ayks

circle move - circular motion - 08/05/11 17:16

Hi,

Im trying to do a circle move. (like tarzan with a liana) or.. like.. .. dunno.

i know do horizontal/vertical movement like player.x+=2; or player.y+=2;

but how to do a fluid circular movement ?
If there an equation or anything ?
Does anyone have any tip for it ?

thanks
Posted By: Anonymous

Re: circle move - circular motion - 08/05/11 17:35

Take a look at this post I had I bit ago. LINK

Use a scan to get at target entity for the circle center.
Posted By: ayks

Re: circle move - circular motion - 08/05/11 18:26

thanks i'll try it later
Posted By: JHA

Re: circle move - circular motion - 08/09/11 10:56

Hello
Circle's equation is

(x-x1)^2+(y-y1)^2=r, where

x1, y1 is center point of the circle and r is radius. Solve function as a function of x: y=f(x). Beware you are going to have a square root and you can get a negative into square root, so you have to check that.

Jarkko
Posted By: ayks

Re: circle move - circular motion - 08/11/11 22:29

thanks jarkko i'll try it later too
© 2024 lite-C Forums