Announcement

Collapse
No announcement yet.

Take 3 Get Actor Vectors for 1 node

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

    Take 3 Get Actor Vectors for 1 node

    I am trying to create one universal node that takes all 3 inputs of vector X,Y, and Z to let the character move in any direction while airborne. See my screenshot. Please let me know how I can achieve this. I need to input 1 vector inside World Direction input on Add Movement Input node.

    Click image for larger version

Name:	blueprint.PNG
Views:	75
Size:	67.1 KB
ID:	1775386

    #2
    Are you moving where the camera is looking? Then just take the camera's fwd vector.

    Other than that how do you know which direction you want to go? How do you choose direction in your game?

    Comment


      #3
      Thank you for Everynone for responding. This is a jetpack functionality. I have it setup where I hold X on my keyboard it propels me into air, which I usually use Vector Up but that only allows me to go up vertically and not control my movement in air. Any ideas? Camera fwd vector isnt working while Im in air, it only pushes me around the ground now since I am not using vector up.

      Comment


        #4
        I have it setup where I hold X on my keyboard it propels me into air, which I usually use Vector Up but that only allows me to go up vertically and not control my movement in air.
        I still do not understand how you want to control it. You're in the air, jetpack is running, you press W to go forward (?), what is supposed so happen now? Do you want to maintain altitude and go where the character is looking or where the camera is looking. Not sure how you envisioned this.

        Comment


          #5
          My apologies.

          When the player jumps then presses X, it activates jetpack mode which currently ONLY goes up with no air control. I want to be able to maintain altitude and go where player is moving with a WASD layout. Does this help? Many thanks for being proactive. Where camera is looking/moving is the direction.

          Comment


            #6
            Makes perfect sense so far. Are we using Character Movement Component here? Or maybe Floating Pawn Movement? These 2 work quite differently. I was initially thinking you're using physics based movement but you're not it seems. It this correct?

            Let's say you're using Character Movement Component and ask it to Add Movement Input Z, nothing will happen here. How does the jetpack work then? Do you switch to flying mode? Because that should work OK out of the box.

            Comment


              #7
              Nice to hear. Correct, Character Movement component. See my latest screenshot. I removed the other nodes and added to Z in World Direction parameter, but it is still not working and goes up in a vertical direction with no room for WASD movement while in air.
              Edit - I realized your question in a different manner.

              The script is quite lengthy with nodes/connections, I think if I could feed those 3 seperate nodes into 1 on my first screenshot, we could really get this to work. Is that possible?

              Click image for larger version  Name:	blueprint2.PNG Views:	0 Size:	43.0 KB ID:	1775405

              Comment


                #8
                I've quickly modified the 3rd person template to work like a jetpack:

                Click image for larger version

Name:	Annotation 2020-06-13 093933.jpg
Views:	86
Size:	232.4 KB
ID:	1775412

                X toggles the jetpack a.k.a. flying; once in flight mode camera works as direction you want to go to, works for any direction. Does it help?

                vid: https://i.gyazo.com/a9cf254bcfe237d4...393e789c91.mp4

                Alternatively, have a look at this one:

                https://answers.unrealengine.com/que...destiny-2.html

                Comment


                  #9
                  Thanks! I'll try this in the morning. It's very late here. Have a great day!

                  Comment


                    #10
                    I just wanted to let you know, Everynone that it was very useful and I want to say thanks!!

                    Comment

                    Working...
                    X