Mesh rotation doing a complete backwards spin once going past 180 or 0

Hello, I have it where I need a mesh (using world / absolute rotation) to rotate smoothly in a specific direction on the yaw axis (Rotate in the same yaw direction the player is looking)

However when I try having it smoothly interpolate. The mesh rubber bands / does a full backwards spin once it reaches a certain threshold. I know why it does this. Its because the world rotation goes into the negatives once reaching past 180 or zero. But I dont know how to get past that. I just simply want it to rotate continuously without bouncing backwards.

Any help will be appreciated! I may take a while to reply but if you need any extra information / context let me know. Thanks!

Here’s the solution.

Thank you very much! I have been trying to figure this out for days now and cant believe the solution was so simple and obvious! This has shortened my god awful code tenfold.

Even the most clinically insane game dev would’ve vomited at the mere sight of the unholy abomination that nearly had even a minuscule chance of being released to an unprepared and forsaken world as finalized code. The mere thought alone to conceive what could only be described as spaghetti incarnate with its seeping tendrils full of hate and sorrow, would be on par no less than treason. For what I initially created was no more than an endless abyss. A void of thin white lines connecting to various geometric structures with whats original purpose was but only of executing their tasks laid bear before them. A purpose I stripped them of when my hubris clouded my vision and forced them to take part in spinning an endless sand wheel with no function other than the motion of the rotation. An action with no yield. A task with no fruits earned from their labor than that of shame. A rat in a cage that I can only imagined had felt mocked by the man behind the glass.
I looked into this void. And it looked back. My thoughts of initial fear and dread soon diminished as it became remorse and pity for the wretched beast created by my hands and my hands alone.
Though it never talked. I could’ve sworn It whispered a faint “end me”. And that I shall, now that I have found the means to do so thanks to your valiant effort.

Such heresy to once thought only be dealt with banishment has found a pure and righteous alternative thanks to the likes of you. You have restored what little honor and dignity I may have once had. But the mark will never hide my shame.

Have a good day my friend.

1 Like

I felt that in my soul…

1 Like