UE5 VR SMOOTH LOCOMOTION | Unreal Engine 5.2 Tutorial + Environment Showcase

Поділитися
Вставка
  • Опубліковано 29 січ 2025

КОМЕНТАРІ • 127

  • @richardswift4196
    @richardswift4196 11 місяців тому +44

    To make locomotion a lot more natural, add a get right vector to the smooth move section and connect the camera to it, split the action value from the inputaction, insert multiplies for both forward and right vectors - multiply forward by action y and right by action x - add the 2 together and connect that to the movement input... Et voila, forward, backward and strafing.

    • @DrakeMakes
      @DrakeMakes  10 місяців тому +5

      Comments like these are so appreciated, I'll keep experimenting!

    • @BFleck
      @BFleck 10 місяців тому

      AMAZING!!!!!!!!!

    • @pinoymovement
      @pinoymovement 9 місяців тому +11

      do you have a screenshot of the blueprint? Sorry I am just a visual learner.

    • @noilers
      @noilers 9 місяців тому

      It worked perfectly, thank you !

    • @anthonyyepez9996
      @anthonyyepez9996 8 місяців тому

      I'm new to this, so sorry if it's kind of dumb but, you add a Multiply and plug both x and y to it or two Multiply nodes, one for Forward and one for Right? How do you plug X and Y to the Movement Input?

  • @giancarlofranco5254
    @giancarlofranco5254 Рік тому +16

    Hey, for a backward movement, you could check with a branch the action value from tour enhanced input event and if is not positive (forward) multiply by (-1) the forward camera vector, and it should move backwards.
    Great video Thanks!

    • @DrakeMakes
      @DrakeMakes  Рік тому +2

      Thank you! I’ll have to try this out sometime!

    • @NightmareRealmsAdventures
      @NightmareRealmsAdventures Рік тому +3

      please, more info, i need backwards movement

    • @oArquidruida
      @oArquidruida Рік тому

      @@NightmareRealmsAdventures oh you don't need to do all that, you can do one binding for forwards/backwards movement, and one binding for sideways, setup just like he did for each one (sideways uses camera Get Right Vector) and it should be good to go. Axis inputs emmit both positive and negative. Which you'll use forward (positive) and backward (negative) on the same camera axis.

    • @MaxStudioCG2023
      @MaxStudioCG2023 Рік тому

      ​@@DrakeMakeshey man ,i never try VR ....for this you need some vr glasses,or costume or something ? how can you see your hands and all that stuf movement ? 😮😅

    • @dev6133
      @dev6133 Рік тому

      yes max you will need an vr headset search up oclus quest
      @@MaxStudioCG2023

  • @drednorzt
    @drednorzt 11 місяців тому +3

    f***ing THANK YOU!
    your the first person out of 4 vids ive been scrubbing endlessly over who mentioned unchecking the controller yaw checkbox. I've been beating my head against the desk for 2 days trying to figure out why it wasn't working 😭

    • @DrakeMakes
      @DrakeMakes  10 місяців тому

      It is not a perfect system by any means but I'm honored to ease the head bashing that goes into learning this stuff

  • @MURDERAXE
    @MURDERAXE Рік тому +6

    Nice work man! Easy setup to achieve what I was looking for. 🔥

  • @HR-ft4gq
    @HR-ft4gq Рік тому +4

    Subbed.. Loooking forward to more VR UE5 related content

  • @geocentrictruth
    @geocentrictruth Рік тому +2

    Nice video M8! Concise and straight to the point!

  • @FPChris
    @FPChris Рік тому +1

    I ordered a Katwalk. Can’t wait to get into stuff like this with it.

  • @hugebluewhales
    @hugebluewhales 8 місяців тому +3

    For forward/backward movements, I multiplied _Smooth_ _Move_ _Action_ _Value_ _Y_ with _Forward_ _Vector_ _X_ and _Forward_ _Vector_ _Y_
    For sideways movements, I then multiplied _Smooth_ _Move_ _Action_ _Value_ _X_ with _Forward_ _Vector_ _X_ and _Forward_ _Vector_ _Y_ , rotated that using _Rotate_ _Vector_ by Z 90 degrees, and added that to the forward movement values

    • @SteveTalkowski
      @SteveTalkowski 2 місяці тому

      Is this a significant difference from @richardswift4196 comment above? Are you able to post a screenshot so we can follow along? Thx.

    • @david3dwood
      @david3dwood Місяць тому +1

      can you explain this in just a little more detail? Forward Vector X (of camera, of VR Pawn?) not sure exactly how to follow this interesting lead. thanks

  • @NewmanF4
    @NewmanF4 3 місяці тому +2

    It does not work for some reason every time I test I’m just really high in the air, my arms are far away and the moving just does not work :\

  • @ae27510524
    @ae27510524 7 місяців тому +1

    I use Oculus 2 and follow the tutorial, but I couldn't move or turn around.
    I found out that in IMC_Default, I needed to select the corresponding device.
    In the video, selected Valve Index, but once I selected Oculus Touch, it worked.

  • @gopherchucksgamingnstuff2263
    @gopherchucksgamingnstuff2263 Рік тому +2

    Legend man. I was standing In my test for my Werewolf hunting game. Thinking I can't move. This will solve that issue. Then on to the next 50 lol

    • @gopherchucksgamingnstuff2263
      @gopherchucksgamingnstuff2263 Рік тому

      I did manage to get the Wolf to be very dangerous. he even has AI speech recognition. I gave it a bunch of random military callouts and directions. Then he will counter. I ran a test and he disemboweled me in under 5 seconds. May need a small lobotomy. Or not. I am giving you every weapon you can bring to bear. Explosives, trail cams, and drones. 50cal rifles, MG42 blah blah. No levels. You jump out of the plane and send up the flare when the job is done, or you don't go home. And try again.

  • @HannoBallin
    @HannoBallin 8 місяців тому +1

    If it wont move for you as well convert the pawn into a character class under class settings and then adjust the vr origin according to the character hitbox

  • @uhhhzane9985
    @uhhhzane9985 3 місяці тому +1

    I am having a problem. I followed your instructions, but had to switch the input to oculus input. And my hands are gone, and I cant move or turn. Do you know how to solve this?

  • @geocentrictruth
    @geocentrictruth Рік тому +8

    How do you make it move backwards?

  • @dakota5532
    @dakota5532 8 місяців тому

    Left thumbstick needs to be split for X and Y axis. All 1d floats. y axis needs get forward vector, x axis needs get right vector. Also x and y have their own add movement. (Normal controller movement)

  • @47VenomGaming
    @47VenomGaming Місяць тому

    With the smooth turn all you have to do is make a x axis on whatever controller you want to turn with and add controller yaw input make a float for the turn speed put it into scale so "triggered" to "controller yaw input" to "turn speed float"

  • @EmeraldAlfie
    @EmeraldAlfie Рік тому +1

    Hi I dont know if i have done something wrong but i cant get the rotation working at all please help

  • @paragpawar7538
    @paragpawar7538 7 місяців тому

    Thank you sooo much man !! I am beginner, and i was looking the same for a long time. But i was not getting the tutorial. Please keep creating such useful content. Thanks.

    • @DrakeMakes
      @DrakeMakes  7 місяців тому

      One of the main reasons I made this was because I couldn’t find any tutorials, it’s not the best system in the world but I’m glad it’s helping people get started in using UE5 VR.

  • @umbratherios5614
    @umbratherios5614 Рік тому +3

    What about rotating the character, and not the playspace? This method rotates the playspace, and if you stand a bit to the side irl, you end up orbitting the center of your playspace. Your character itself doesnt actually turn. this can create massive clipping issues.

    • @proszowski
      @proszowski Рік тому

      not to mention the motion sickness :V

    • @umbratherios5614
      @umbratherios5614 Рік тому +5

      @@proszowski I ended up figuring this out... look for a video called "Setting Up Smooth Locomotion VR Using Unreal Engine 5.1+ Using The Enhanced Input System." by GDXR.

    • @travisantoniello
      @travisantoniello Рік тому

      Thank you. Found out that the starter snap turning breaks after going into the VR Pawn's class settings and changing it to a character, and had been trying to set up smooth turning for a few minutes.

  • @HaydenWilsonOutdoors
    @HaydenWilsonOutdoors 24 дні тому

    I couldn't move using the sticks, I rewatched several times but still not working. Anyone got an idea why?

  • @doubla871
    @doubla871 5 місяців тому

    Do you happen to have a solution for the weird collision issues that comes with the Collision capsule and VR origin being set to the center of the playspace instead of where the player is actually standing IN the playspace? I've been having an aneurysm for weeks trying to figure this out

  • @jjke3050
    @jjke3050 6 місяців тому

    Can you please tell me why it wont let me turn other directions or let me move other directions it only lets me move forward not backwards or to the side

  • @saarpartush2168
    @saarpartush2168 7 місяців тому

    Hey thank you very much! I have a question . Can I do all the process without exchgange the Parent Class setting from Pawn to Character ?

  • @desarrollou71x72
    @desarrollou71x72 18 днів тому

    alright thanks..!
    Just one question: if you turn physically your head, what happens with your Character?.. will turn the whole Character ? or turns only your camera ? the question applies for movement too: if you physically go forward two steps (for instance) what happens with your ACharcter, will it move completely with you or is your camera the one that is moving only ?

    • @desarrollou71x72
      @desarrollou71x72 3 дні тому

      i have discovered what happens...
      Inside a Character or Pawn, the capsule (if Pawn has it) is controlled by inputs, and when i move my real body and head over the real place, what moves is the VROrigin, is just like the camera and hands get aparts from the capsule component but capsule component is still being the master of Camera and Hands...
      It is like as you have a pet, and that pet is linked to you with a rope, the pet can walk apart from you but you still have the control of your pet.

  • @OoJxCorrey
    @OoJxCorrey 6 місяців тому

    Hey, how can i prevent that iam on start PIE or packaged to high and not in the real Z axis ? on teleport it´s just one port than im on the right axis

  • @bladeedgerunner6854
    @bladeedgerunner6854 4 місяці тому

    Should the collision capsule follow the player in the real world? If i move around in my setup wont that make the collision and movement off center? What do other games do to fix this problem?

  • @FPChris
    @FPChris 6 місяців тому

    5:42 What happens to the VR Origin since you're moving the camera ?

  • @stefanocambazzu7146
    @stefanocambazzu7146 5 місяців тому

    I tried in every way I followed the tutorial to the letter but the player with the controllers does not move .. can you post the modified project?

  • @AgateSpace2339
    @AgateSpace2339 Рік тому +1

    Hey, i know you've done some videos on horror Engine. Maybe do a little tutorial series on it? simple tips and tricks for the basics or something? Anyways nice videos!

  • @RomanInkStudios
    @RomanInkStudios 10 місяців тому

    BEAUTIFUL!!

  • @Cooper_the_Wizard
    @Cooper_the_Wizard Рік тому +1

    Do you happen to know of a way to rotate the camera instead of the actor? I've been trying with "add local rotation (Camera)" and when I print a string the values come through, but the camera doesn't move. Looking to rotate based on relative position, not just the center of my play space. Also looking for a similar solution regarding the collision capsule. Great video!

  • @Brady_Litzinger
    @Brady_Litzinger 10 місяців тому

    MY smooth turn does not work and I feel like I followed everything correctly outside of using oculus controllers instead of valve. Thoughts?

  • @n7pankake236
    @n7pankake236 5 місяців тому

    BRO I have a question what happens when you move IRL ? I for example made a trigger box to change color from red to green (VERY BASIC). if I teleport to it, it changes from red to green as it should but if I WALK into it like IRL it doesn't change and I do not understand why (I added a Capsule collision to the VR default Pawn) it works if I teleport but not if I walk into it IRL movement... any help/tip will be appreciate it

  • @LillyIsPink
    @LillyIsPink 10 місяців тому +2

    Ty for this helpful video! However I have some complaints about the movement.
    1. moving even slightly out of where you were standing while initually starting the headset will throw off the turning, making you run backwards or forwards in circles
    2. moving backwards (as you mentioned) will make you go forwards
    Can you please and thank you with a cherry on top make an updated video on how to fix these minor issues?

    • @DrakeMakes
      @DrakeMakes  10 місяців тому

      As I continue to experiment with VR I will post about what I figure out here on the channel, you all are learning with me!

    • @LillyIsPink
      @LillyIsPink 10 місяців тому +2

      @@DrakeMakes me and another developer managed to solve the movement issue but we are now having the problem of if you hold something you go backwards

    • @alessandrocernuzzi
      @alessandrocernuzzi 7 місяців тому

      @@LillyIsPink Any luck fixing it? I setup everything so I can move forward/backwards/sideways with the left thumbstick and snap turning on the right one, but if I hold something I fly through the floor and backwards. Any ideas? Thank you :)

    • @LillyIsPink
      @LillyIsPink 7 місяців тому +1

      @@alessandrocernuzzi nah i gave up a long time ago sorry

  • @Samm-lv8cl
    @Samm-lv8cl Рік тому +2

    Great work :) How to fix the Camera height, I sat the value -88 but the scale is wrong :') any help?

    • @DrakeMakes
      @DrakeMakes  Рік тому +2

      Make sure you’ve set the VR Origin z height to -88 as opposed to the camera, I think I did the same thing!

    • @Samm-lv8cl
      @Samm-lv8cl Рік тому +1

      So the camera should be +88, I sat the VR Origin to -88, but I was short inside the game, when I put it to -33 it start to get better @@DrakeMakes

  • @Chell_Portal
    @Chell_Portal 9 місяців тому

    I need help! I can't turn with my right stick even though I checked that Yaw thing.
    EDIT: Fixed it. Had to wire the Triggered piece of code to the rotation set.
    Edit 2: Turning is off-center.

  • @kirby1fan
    @kirby1fan 10 місяців тому

    nice that that works, but how do you set up movement from headset? 6dof?

  • @srcrazy9
    @srcrazy9 8 місяців тому

    esto funciona con amigos ?

  • @henrybear4600
    @henrybear4600 9 місяців тому

    Yes, great job. I will be adding this or a version of this into my levels. I prefer the quest controllers for motion, so will use them and not a valve controller. Love the idea. For the rotation, I will look at specific equations for turning and see if I can fine one that moves in such a way its not to jarring to experience. Again, great job.

    • @DrakeMakes
      @DrakeMakes  9 місяців тому

      Keep me posted on what you find out, this has been a good starting point yet has plenty of room for improvement!

  • @J4NkEnJ0Y3R
    @J4NkEnJ0Y3R Рік тому

    Beautiful and simple for begginers. 🎉 thank you kindly.

  • @souravdhali6006
    @souravdhali6006 8 місяців тому

    I Did the same proces AI_smoothTurn is not working.

  • @fabriziobiancardi7734
    @fabriziobiancardi7734 Рік тому

    Very useful man! Thx a lot!

  • @darrylmorin7112
    @darrylmorin7112 Рік тому

    the strife left and right and move backwards are not working, how do you keep those with your current settings?

    • @darrylmorin7112
      @darrylmorin7112 Рік тому +1

      show ...@NightmareRealmsAdventures oh you don't need to do all that, you can do one binding for forwards/backwards movement, and one binding for sideways, setup just like he did for each one (sideways uses camera Get Right Vector) and it should be good to go. Axis inputs emmit both positive and negative. Which you'll use forward (positive) and backward (negative) on the same camera axis.

  • @ayan251
    @ayan251 9 місяців тому

    Nice work! thanks for sharing. Also, does the hand grabbable works?

  • @Samm-lv8cl
    @Samm-lv8cl Рік тому

    Any workflow for UE4?

  • @rohithdj9794
    @rohithdj9794 6 місяців тому

    The movement works but the position seems to be kind of 2ft above the ground plane like it feels like floating rather than touching the floor.....How do we fix this????/

    • @n7pankake236
      @n7pankake236 5 місяців тому

      the camera he did -88 no need for that. it was just -88 to the origin

  • @Lucas.B__
    @Lucas.B__ 9 місяців тому

    Hey, I'm having an issue that I'm not able to fix + I cant find any tuto to fix this issue on internet. When I move irl the capsule collider doesnt follow me, resulting in a non alignment situation where the player can go through walls ... Any idea on how to fix this ?

    • @69mignon
      @69mignon 9 місяців тому

      Hello, are you using the default VRpawn bp or did you create one? If you created one, ensure that your capsule is the root of your component in your BP. If not, move your capsule in the "DefaultSceneRoot", then your VR origin and camera will all be children of your capsule and you should be able to move it with your camera (in fact, I should rather say that it will be your camera which will move with your capsule). If you are using the default VRpawn, and modified nothing in its componet structure, then I have no idea why your camera is moving and not your capsule.

    • @Lucas.B__
      @Lucas.B__ 9 місяців тому +1

      @@69mignon hey, I fixed it.
      I was using the default pawn from the ue5.2 vr template.
      To fix it I just call in the tick the node that comes with the template that allow to re-place the player in the 0,0,0 position according to the root.
      So that everyframe the camera is placed at the perfect spot so that it stays in the capsule collider of the player.
      It's maybe not the best course of action but it seems to work kinda well at this time.
      Thanks anyway for replying !

  • @moritzpollich8252
    @moritzpollich8252 7 місяців тому

    Doesn’t work. After following each step my hands are stuck on the floor and don’t move

  • @harrycobeur6057
    @harrycobeur6057 Рік тому

    Thanks for the video ! 😎

  • @Moctop
    @Moctop Рік тому

    Seems side to side/strafing isn't working either?

  • @RpgPenguins
    @RpgPenguins Рік тому

    Okay, but how do I strafe

  • @maximilianmander2471
    @maximilianmander2471 Рік тому

    if you use the pico 4, using the Oculus controller instead of the valve controller solved that simple problem ;) 3:01

  • @gamawoodev
    @gamawoodev 9 місяців тому

    this is a useful one thanks ! good job !

    • @DrakeMakes
      @DrakeMakes  9 місяців тому +1

      Glad it's coming in handy, it's a decent starting point :)

    • @gamawoodev
      @gamawoodev 9 місяців тому

      @@DrakeMakes I loved the rhythm and the straight to the point approach thanks for sharing this!

  • @mangomastani9847
    @mangomastani9847 3 місяці тому

    This is great but I wish you explained what everything did and why you did what you did. It would have been helpful to change things if we wished to

  • @alessandrocernuzzi
    @alessandrocernuzzi 7 місяців тому

    I setup everything so I can move forward/backwards/sideways with the left thumbstick and snap turning on the right one, but if I hold something I fly through the floor and backwards. Any ideas? Thank you very much for this, great tutorial :)

    • @DrakeMakes
      @DrakeMakes  7 місяців тому

      Glad it’s working as a starting point! Try experimenting with the collision settings of the objects you pick up and the player capsule, making it so your VR pawn only collides with the environment and not objects you pick up. Good luck!

  • @lunakorayner
    @lunakorayner Рік тому

    This was an awesome video thank you. Maybe its because I'm quite new but I didn't understand the "why" to many of the steps you were doing. Perhaps that wasn't your aim which if that's the case then you can completely ignore, but if you did maybe explaining that the reason we changed the value type to axis 2D is because xyz; would have helped :)

    • @DrakeMakes
      @DrakeMakes  7 місяців тому +1

      Fair enough, balancing in depth explanations against the common modern attention span is an interesting back and forth.

  • @charithf3095
    @charithf3095 Рік тому +1

    Hi How to Create and Move 🤔VR Origin

    • @FPChris
      @FPChris 6 місяців тому

      I think you have to move the Actor "self"

  • @whiteakers
    @whiteakers Рік тому

    Damn i followed this to the letter twice and it didnt work. neither thumbstick works. im in 5.3.2 ...any thoughts?

    • @xray-n4k
      @xray-n4k Рік тому

      Same, did you solve this issue?

    • @whiteakers
      @whiteakers 11 місяців тому

      @amirsagatov4862 No i didnt. I ended up buying TrueLocomotion pack but that came with its own swath of complexities. Ill reply here once i sus it out

    • @pucnaa
      @pucnaa 9 місяців тому

      @@whiteakers Hey! Do you recommend it? :)

  • @MickaelSchaack
    @MickaelSchaack 4 місяці тому

    dude dont work only go front i use occulus i put for occulus not valve, and when i push back he go straight also ... not nice i think this tuto is obselete

  • @RapidRealityRJC
    @RapidRealityRJC Рік тому

    why are my hands gone?

  • @KADstudioArchitect
    @KADstudioArchitect 6 місяців тому

    I use Meta Quest 3 didn't work at all, Also replaces with Oculus 2D Axis get same result

    • @KADstudioArchitect
      @KADstudioArchitect 6 місяців тому

      I Fixed movement via Meta Wust 3, But rotation is not working

  • @froschfreak1699
    @froschfreak1699 Місяць тому

    Amazing. 1 Follower +

  • @lasereye159
    @lasereye159 10 місяців тому

    great!

  • @MickaelSchaack
    @MickaelSchaack 4 місяці тому

    is not for occulus i search one

  • @JackNollington
    @JackNollington 5 місяців тому

    THANK YOU!!!!!!!!

  • @DrHammerr
    @DrHammerr 2 місяці тому

    So, are you a GIANT in real life? Everything looks so tiny when you're playing.

  • @inthecrosshairs1
    @inthecrosshairs1 8 місяців тому

    thank you sir

  • @luisherrera-yw3zw
    @luisherrera-yw3zw Рік тому

    Hello, why is the vegetation that I put in virtual reality noisy?

    • @DrakeMakes
      @DrakeMakes  Рік тому

      This might be an LOD issue- if your computer can take it you can try forcing the level of detail to stay higher under the foliage’s settings. This can be pretty heavy stuff to run

  • @lukesfilmltd
    @lukesfilmltd Рік тому

    anyone else who suffers with loss of VR hands open your VR game mode and refresh the default pawn class, compile then save.
    This has been driving me crazy and no one needs to suffer the same fate. think its because of changing the VRpawn's default class from pawn to character ( thus the gamemode refresh fix)

    • @deimovprojects
      @deimovprojects Рік тому

      I have this problem and i iopened the VR Game Mode refresh the default class and save but i still cant see the VR Hands.....

  • @mikem-zz4ui
    @mikem-zz4ui 11 місяців тому

    thanks!

  • @roro1999aa
    @roro1999aa 3 дні тому

    what a great community in the comments section! ;) + if anyone knows a discord channel for UE VR pls share thx

  • @nathancsinger
    @nathancsinger 11 місяців тому

    Thank you but even at 50 speed i still had to pause please be slower

  • @117Entertainment
    @117Entertainment Місяць тому

    No turn and only farward. in a tutorial u have to show ALL steps...

  • @alvinpanganiban9058
    @alvinpanganiban9058 Рік тому

    seems the actor is floating.

  • @SirevixGames
    @SirevixGames 4 місяці тому

    After watching this video next step is this.
    To fix going backwards and stuff like all degrees of freedom.
    /watch?v=6GKBXl7Jul4

  • @ErgoVR
    @ErgoVR 9 місяців тому

    why is my action value a boolean

  • @andresca1985
    @andresca1985 22 дні тому

    damn, this make me sick