Announcement

Collapse
No announcement yet.

Rotating an Actor based on gamepad thumbstick

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

    Rotating an Actor based on gamepad thumbstick

    Hello,

    I'm new to UE4 and am working on a concept where I'd like to rotate an Actor based on the gamepad right thumbstick. I have an Actor where I'd like to rotate it on the Y Axis based on the right thumbstick. I've attached a screen shot of the blueprint in this post. I'm trying to understand how rotation works and how I would go about rotating an object based on the gamepad.

    Thanks,

    Wes



    Click image for larger version

Name:	Screen Shot 2014-10-05 at 3.59.57 PM.jpg
Views:	1
Size:	199.4 KB
ID:	1139158
    Allegorithmic Community Manager - Substance Specialist
    twitter: The3DNinja

    #2
    Alright, I made some progress : )

    I know have it working. The only thing is to make to rotation not jump back to zero when I let go of the joystick. Here's the updated blueprint.

    Cheers,

    wes

    Click image for larger version

Name:	Screen Shot 2014-10-05 at 8.41.13 PM.jpg
Views:	1
Size:	169.4 KB
ID:	1057496
    Allegorithmic Community Manager - Substance Specialist
    twitter: The3DNinja

    Comment


      #3
      Hi Wes. Sorry to revive an old thread!

      I was wondering how you solved the final issue of rotation jumping backing to zero?

      Regards,

      Michael Wentworth-Bell
      Michael Wentworth-Bell
      Espire 1: VR Operative: Espire1.com
      Melbourne, Australia

      Comment


        #4
        Originally posted by michaelwbell View Post
        Hi Wes. Sorry to revive an old thread!

        I was wondering how you solved the final issue of rotation jumping backing to zero?

        Regards,

        Michael Wentworth-Bell
        Probably one of these in place of 'Set Relative Rotation'.
        Click image for larger version

Name:	115f93c40ee06e8cd2c30526fea28746.png
Views:	1
Size:	32.0 KB
ID:	1105561

        However, that would only ever be an additive effect, and wouldn't base the actor rotation directly from the position of the joystick. The other way would be to make sure that X and Y were both not 0. Using a branch node would also solve the issue, resulting in the actor resting at the last valid input.

        Click image for larger version

Name:	3a91408a934fd860311b4a341d0ec520.png
Views:	1
Size:	65.3 KB
ID:	1105562
        They broke the signatures so I removed mine thinking it'd be awhile. The signatures work again, but I haven't redone my signature yet.

        Comment


          #5
          Hi Devlin,

          Thankyou for the chiming in with such a quick reply, much appreciated!

          I will give this a go over the weekend and report back!
          This thread was the top result in Google after searching "Unreal Engine thumbstick rotate object".
          So it's great to have a solution in the thread.
          Michael Wentworth-Bell
          Espire 1: VR Operative: Espire1.com
          Melbourne, Australia

          Comment


            #6
            Hi all, how did you go with this? I'm somewhat new to this all so a screenshot would be awesome. How did this all pan out? How can I get the thumbstick to rotate the view?

            Comment

            Working...
            X