Hi all
I’ve spent all day trying to find a bug in my code and I’ve come to the conclusion that there can’t be one, yet this glitch persists.
I’m rotating a wheel in a continuous loop.
local rotWheel,wheelTransition local resWheel = function() wheel.rotation = 0 transition.cancel(wheelTransition) wheelTransition = nil rotWheel() end rotWheel = function() wheelTransition = transition.to( wheel, { rotation=359, time=8000, onComplete = resWheel }) end rotWheel()
The wheel happily goes round and round all day.
But, for some odd reason the wheel stops when a totally unconnected collision occurs elsewhere.
I’ve checked over and over the code, none of the variables in the above code are used anywhere else (on purpose) so I’m perplexed.
I put in some print statements and the rotWheel function just stops being called for no reason.
I thought maybe because I’m starting and pausing the physics engine that might be the cause so I commented out that code and it made no difference.
Has anybody seen this before or helped someone else with this and can offer me some advice?
I’m using Windows build 2014.2511