Library for rotation an object around a point

Hi all,

I’ve been working on another library for use in my own game. I needed to rotate an object around a point outside of the object itself (ex: the center of the screen). I didn’t want to do the math myself, so I found an open source solution in actionscript. After a few hours, I was able to convert it to lua with all of the original functionality.

You can find it here. It includes several functions that rotate an object around any point in space (you can update the registration point at any time). The documentation is available on that page. It includes one sample app. Check it out and let me know how it works for you. [import]uid: 16410 topic_id: 6497 reply_id: 306497[/import]

Could you add this to the code exchange? It’s easier for people to find it then [import]uid: 8353 topic_id: 6497 reply_id: 22536[/import]

I would, but I don’t have permission to post there (I don’t own a copy of Corona yet). If you like my work, maybe you can convince those who are in charge to elevate my permissions :wink: [import]uid: 16410 topic_id: 6497 reply_id: 22734[/import]