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
Label: corona android iphone ipad building error inmobi problem display screen View image tableView failed object physics touch button game lua config event listener |
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,
?:)