How would I move an object around in a circle?

I don't mean make it spin or anything like that. I just want it to move round in a circular path.

Any help would be appreciated.

Mike

Use the Physics engine pivot joints. An example is located here:
http://developer.anscamobile.com/code/orbital-rotation

-David

You can also use a bit of trigonometry and set the position (even based on time elapsed for more accurate granularity)

or you can use physics, you could use that sample, you can also create a pivot joint and add a motor. However you will still have to move your objects if you offset the main body around which they are all moving.

cheers,

?:)

views:1586 update:2011/10/30 22:40:54
corona forums © 2003-2011