Hello,
I have a vector 3 add that adds 90 (degrees) to a rotation mechanic. It works for the first 2 rotations (adds 90 to 0, 0+90=90, and adds 90 to 90, 90+90=180) But whenever it adds 90 a third time it results in 270 in the variable (good) but -90 in the game object's rotation. You wouldn't think this would be a big deal since -90 degrees and 270 are the same on a circle, but it results in a weird jerking movement on the rotation. My game mechanic is that the whole level rotates whenever you hit a button (must be touching a wall to do this). Here is the FSM. I basically set the Vector 3 value to 0 (every frame). I was having an issue with this before and it seemed to help. I have two colliders on my game object (one left and one right). A trigger2d event sends an event depending which side was hit. Then it either adds -90 or 90 depending which side was hit. And it rotates the entire game. The camera and colliders are kept to 0. I tried posting about this in a different way before but I figured I'd start a new post so hopefully its clearer. I could try posting the entire FSM but it would take a bunch of screen shots so I figured this was easier. Thanks in advance for your help!
John Bassi