I'm trying to make an object move in a predetermined path, going in a straight line first, then rotating until it is completely inverted, then proceeding straight and finally rotating back to normal and continuing the loop.
I tried doing this with overlap checks, custom movement, and other things but none work perfectly and it almost always moves out of the intended path after a while.
I'm going for something like this. When the rod reaches the right edge, it collects a bubble, and when it reaches the left, the bubble bursts as it rotates back to normal.
Here's a crude reference pic.