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]
[import]uid: 16410 topic_id: 6497 reply_id: 22734[/import]