I've been having an issue with a very basic mechanic I'm trying to implement in my game.
It's a platform that rotates 180 degrees every X seconds. On one side, there are spikes (red side) and on the other, the player can land, no problem.
It works just fine sometimes, for some moments and eventually, this happens :
Often, it gets to this point or worse
However, what I want is for my platform to rotate and stay perfectly horizontal each time it does. Anyone has a better way to do this... or just a way that works? As silly as this may sound, I just can't get it to work without issues.
These are my events :
I've tried different variants of this and the problem remains.