Top Down Character Does A Full 180 Turn/Flip

Hey Guys,

Not sure if anyone can help me with this, but my character randomly does a full 180 flip. I believe the cause for this is because the mouse moves over the body and causes it to flip completely. Here is a video, hope someone can help me figure this out or how to prevent it from happening.

or

Thanks

Sorry about the video, it was done in 720 not 1080 :confused:

This only seems to happen when I turn the character.

Here are the screenshots if this helps.

looks like a calculation error with your forward direction,
but the resolution of the youtube video is too bad, I can’t read the blueprints.

Maybe I can help if you make screenshots of your character blueprint

looks fine to me,

steps I would try:

  • print out current yaw value to see when it changes
  • print out the axis value in the axis turn event to see what’s the input that changes it, and to make sure that no other input has an influence on yaw
  • disconnect the AxisValue from the val in add controller yaw input, to make absolutely sure that that’s the only input that changes the yaw value

Still not sure what is doing this, I did all the things you asked me to do but once it hits this Value it flips.

Value : 0.097577

Any idea what could be causing it?

It also turns out that it is the Camera that is flipping not the character.

Ok, so I sorted the problem out. I just changed it from being at a 90 Degree Y angle to 89 Degree Y Angle and it stopped the flipping. (This is with the Spring Arm)

I guess it’s because of your top-down view, and how rotations work, will try a mini test when I’m in front of my home computer

made a small test myself, the problem comes from you looking top down on the object it appears that the unreal camera rotation update can’t handle the top-down case perfectly.

Depends on what’s your game is all about you have some options to work around that:

  • Don’t do top down, just rotate the object you are looking at so that it feels like top down but your character is actually lying on the back or something like that
  • Don’t use the camera rotation update system of the player controller, but rotate the camera yourself

Thanks for the reply with the possible fixes. I don’t know why I didn’t think of just rotating the character and not the camera.

I’m not sure if it could be that but I noticed that the Player Start says “Bad Size”. Yesterday it popped up to me as well while making a game and it gave me some problems with camera and collision.

From what I figured out you get that if you put Player start too close to some other object that it can collide with and probably get some issues. So try lifting it up a bit until it doesn’t say “Bad size” anymore.

Yea, I fixed up that “Bad Size” issue yesterday once I moved the Player Start to the proper location and height.
Thanks for the advice too :slight_smile:

Answer to this problem with possible fixes :
Thanks to Lardo Deepdelver :
Depends on what’s your game is all about you have some options to work around that:

  • Don’t do top down, just rotate the object you are looking at so that it feels like top down but your character is actually lying on the back or something like that

  • Don’t use the camera rotation update system of the player controller, but rotate the camera yourself

Quick Fix (By Me) :

  • Changed it from a 90 degree to 89 degrees.