I have 2 objects and Both of them are rotating
object1 is rotating at an anchor point and I have done something like this to make it rotate
object1:setRotation(object1:getRotation() + 4) and so if I do
print(object1:getRotation()) in some part of code, all it does is starting from some value, increments it by 4 degrees and goes on till thousands, but what I wanted was it should return the values with in the range of 360 degrees.
2. my object 2 is moving around an eclipse following the equation of eclipse to move and jumps(at a particular event),
now if I check object2:getRotation() at any point of time, even if it jumped, it always always returns 0.
to check the collision of these two object, I need to have their angles so that I can use TNT collision engine ,right? So how do I fix it?
I am attaching an image in case I could not explain it well
Comments
I was reading your case and found it interesting (I love the clock problems).
so I have developed a code which I hope will help you better manage Gideros
you can download this source from here too
https://github.com/HubertRonald/Clock_Ellipse/blob/master/main.lua
Bye >-
[-] Liasoft