Prominent
I do not understand what is happening here.
If in the editor
sprite2.angle = 95
sprite3.angle = 240
And you make an event like:
Start of layout
--- create gear joint with phase = sprite3.angle-sprite2.angle
Then sometimes the objects will rotate 360 before settling.
However if you set the angles with events then it's perfect.
Start of layout
--- sprite2: set angle to 95
--- sprite3: set angle to 240
--- create gear joint with phase = sprite3.angle-sprite2.angle
or you even can do this:
--- sprite2: set angle to self.angle
--- sprite3: set angle to self.angle
--- create gear joint with phase = sprite3.angle-sprite2.angle
EDIT:
Ah, I see what the issue is. Internally in C2 angles can be any value. When you access them however, they are always returned in the range [0,360). So it would be a fix from my end. Till I do that the above solution will work.