Announcement

Collapse
No announcement yet.

Rotation resets to Zero

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Rotation resets to Zero

    Good day to you all.

    Please can someone help with the Blueprint below, I am trying to enable mouse look on the X-Axis only. The BP is attached to a Pawn with Spring Arm and Camera. As soon as I move the mouse along the x axis the pawn rotates but immediately resets to zero.

    Click image for larger version

Name:	mouselookx.PNG
Views:	1
Size:	52.7 KB
ID:	1134946


    I'm new at this so it's probably a basic error but any help is much appreciated.

    Thanks

    #2
    The reason why its resetting back to 0 is because that's what your telling it to do. The axis value with go to 0 when the mouse isn't being moved and -1 - 1 depending on the movement direction of the mouse.

    All your doing is setting the rotation to this value*5.

    What you need to do is take the actors current rotation and then add the axis value to it.
    Looking for blueprint tutorials? Then visit my blog... voxagon

    Comment


      #3
      Do you mean like this ?

      Click image for larger version

Name:	mouselookx2.PNG
Views:	1
Size:	89.3 KB
ID:	1050852

      I still get the same problem

      Comment


        #4
        That looks right so in the "Defualts" tab make sure you haven't got "Use Controller Rotation Yaw" set to true. (assuming this is inside a Pawn/Character BP)
        Looking for blueprint tutorials? Then visit my blog... voxagon

        Comment


          #5
          It is a pawn and the use controllers are all set to false, still getting the resets to zero unfortunatly

          Comment


            #6
            Ok, if you've got a camera in your BP, if you take a look in its properties "Camera Settings" there's an option called "Use Controller View Rotation" you'll probably need to untick that option as well. If that doesn't work I haven't got a clue. :S lol.
            Looking for blueprint tutorials? Then visit my blog... voxagon

            Comment


              #7
              Thank you for your help, I will post if I resolve the problem

              Comment


                #8
                Did you ever find the solution for this?

                Comment

                Working...
                X