Complete VR Body Setup - Arms and Legs IK with Hand Animation

Поделиться
HTML-код
  • Опубликовано: 5 янв 2025

Комментарии • 300

  • @kiwifrfr
    @kiwifrfr Год назад +36

    for anyone having issues with the ikfootsolver script, the solution that solved my issue of the legs just floating in place was to change the step distance, height, and length to smaller numbers like 0.4 and 0.2 instead of the default values of 1 and 4 because they were configured for the mech model unity used which is way bigger than a normal humanoid one

    • @ValemTutorials
      @ValemTutorials  Год назад +12

      I'm going to pin this comment because of the tips and the cute dog on the profile picture. :D

    • @1playfair
      @1playfair Год назад

      Awesome just moved my character to a new scene to start building that scene and noticed that the hand targets are being followed but the feet are floating in space. Your comment will likely help fix that for me. Thanks and thanks Valem. I am also noticing as I walk that my hands look like they are glitching or jumping a little as I walk forward. It may be something I’ve done outside of this video. I’ll figure it out at some point.

    • @LeoYu-xo8dw
      @LeoYu-xo8dw 11 месяцев назад +1

      Thanks for the info! However, it still does not work for me, and both legs are floating around on the side of character's body. Any suggestion to fix this issue? Thanks a lot.

    • @SkizzGT
      @SkizzGT 11 месяцев назад

      @@1playfair have you resolved this issue when i move my character is laggy or glitchy

    • @HarshaRajendranHarsha
      @HarshaRajendranHarsha 10 месяцев назад

      Hi I am facing a similar issue. The upper hands, the face torso Upto the hips are working great. The legs seem to be in air for sometime and then it begins to fold completely near the origin ( I.e the spot where the AVATAR was there prior to pressing the play button ). and have bent knees at 90 degrees far away from the origin. I am Having issues with the legs. Initially they float horizontally and later they bend in a slow manner. And the knee leg doesent lift when I lift my legs here. I got them to move front, back and towards the sides. Help me please. It’s quite urgent actually. The latest values are having the speed at 4 and the step distances covered in decimal values. Yet I am still getting the horizontal floating legs issue which folds up and doesent respond when I lift for knee flexion, thighs etc.

  • @ehtishamulhaq7028
    @ehtishamulhaq7028 2 месяца назад +2

    Thanks for the tutorial!
    For anyone struggling with floating legs when they are bent (while crouching), what helped me was setting Ray Start Y Offset to 0.5. It may be different for you. The problem is ray going under the ground and hence it doesn't hit the ground. To visualize and set your offset,
    you can use the following debug line right after new Ray object is created in Update function of IK Foot Solver script: ```Debug.DrawRay(ray.origin, ray.direction * rayLength, Color.red); ```
    Then as you enter play mode, and go to Scene view, you can see two red lines under the Avatar's feet. So, adjust Ray Start Y Offset and also perhaps the Ray Length accordingly to make sure these lines start from above the ground and go over it.

  • @TheAstrocricket
    @TheAstrocricket 10 месяцев назад +3

    For those having issues with the wrist not rotation the forearm, which causes some jank, you can parent the "Hint" to the "Target"

    • @Myusernameis_name
      @Myusernameis_name 6 месяцев назад

      By jank do you mean like your arm spazzing out?

  • @IanMuDarren
    @IanMuDarren 11 месяцев назад +1

    Thank you, your tutorials are very valuable and have helped me avoid many pitfalls.

  • @venusroc1258
    @venusroc1258 Год назад +5

    Thanks for covering such an important content for vr second time. I was always managing the mess up on the first tutorial this one is even simpler and faster

    • @gamelady-dolls
      @gamelady-dolls Год назад +1

      How about the leg problem? thanks!

    • @HarshaRajendranHarsha
      @HarshaRajendranHarsha 10 месяцев назад

      Hi I am facing a similar issue. The upper hands, the face torso Upto the hips are working great. The legs seem to be in air for sometime and then it begins to fold completely near the origin ( I.e the spot where the AVATAR was there prior to pressing the play button ). and have bent knees at 90 degrees far away from the origin. I am Having issues with the legs. Initially they float horizontally and later they bend in a slow manner. And the knee leg doesent lift when I lift my legs here. It got them to move front, back and towards the sides. Help me please. It’s quite urgent actually.

  • @J4ME5_
    @J4ME5_ 11 месяцев назад +1

    What an amazing tutorial, I love your energy too! THANK YOU! I could learn from you all day! Much love from Seattle!

  • @controltowervr4489
    @controltowervr4489 3 месяца назад

    Thanks for the great tutorial.
    FYI, if the character IK is outside the VR rig and your character goes very fast (like say... your character is traveling with a jetpack), your visible body will be 1 frame behind your actual VR body and making a interesting out of body experience (seeing your body from above).
    To resolve this, I just moved the IK under the VR rig so that the late update is done at then end of that frame and not on the next frame.

  • @xOmqduperJJ
    @xOmqduperJJ 9 месяцев назад +1

    for those who are having trouble with its legs floating and not walking that means it is too close to the ground, If that dose not work then the ground probably needs a mesh collider

  • @matthewduncanson8744
    @matthewduncanson8744 Год назад +8

    Could you please do a tutorial on vr melee combat your tutorials have helped me a lot and I can’t find any other tutorials on melee combat I would be very grateful😊

  • @wurstohnedarm
    @wurstohnedarm 8 месяцев назад +2

    Brilliant! Waiting for Part2

  • @Sail_VR
    @Sail_VR Год назад +4

    THANK YOU!!

    • @IamGrimVR
      @IamGrimVR Год назад +2

      full body system in your game, cool to know

    • @chickensmaster1525
      @chickensmaster1525 5 месяцев назад +1

      yo, love your game!

  • @PRodi_
    @PRodi_ Год назад +8

    Valem do you have in plans to do some tutorials like: "Final IK" from assets store with VR in mind???

  • @duckie0002
    @duckie0002 Год назад +2

    love your stuff valem! been using your tutorials since day 1 on unity

    • @mmmsir6034
      @mmmsir6034 Год назад +1

      I even using his tutorials when I was born! It was so great!!!

  • @BebJeb1
    @BebJeb1 2 месяца назад

    how do i get the xr thingys bc at 11:37 he messes with this thing called xr orgin i wnna know how to get it so i can finish the vr script

  • @spacekick6942
    @spacekick6942 6 месяцев назад +1

    Worked Perfectly! I just needed to make some small changes to the right and left vr targets( because I'm using a different xr origin).

  • @Besttechnology
    @Besttechnology 11 месяцев назад +6

    i have a problem that the camera doesn't start in the middle of the head its down

    • @AbhijitPatil-s7e
      @AbhijitPatil-s7e 6 месяцев назад +1

      yea same did you find a solution for that ??

  • @DuranMediaSolutions
    @DuranMediaSolutions 10 месяцев назад +2

    YOU ARE A LEGEND!! A+++

  • @BossKing1243
    @BossKing1243 Год назад +1

    Bloody great tutorial man + I love the passion in your voice. Very easy subscription + like. I told my friends about you 🤟🏾

  • @basedwaffle
    @basedwaffle Год назад +8

    i need a tutorial for the forearm twist

    • @sorlana
      @sorlana Год назад

      thats more blender based, its weight painting

  • @MickyDuhn
    @MickyDuhn Год назад +2

    hey, i was wondering why the legs were so long, so i looked like i was crouching the whole time

  • @SavAndOak
    @SavAndOak Год назад +3

    For some reason the main camera is in the legs how to move it to the head?

  • @SupernerdX_Dev
    @SupernerdX_Dev Год назад +20

    @valem Tutorials please make another part to this video that shows how you can add this full-body VR setup to the full-body physics rig you completed previously. That way, we can create a full boneworks like experience. I am currently trying to implement it, and I run into an issue where my character's model glitches evetime I move forwards.

    • @PommeDeux
      @PommeDeux Год назад

      Did you ever get past the issues? I'm looking to implement the full body physics to this as well.

    • @gavinrector
      @gavinrector Год назад +1

      by chance are the rigidbody bones using interpolation/extrapolation? that has to be off.

  • @NeoFox-23
    @NeoFox-23 8 месяцев назад +6

    the ik footsolver script doesnt show up

  • @lukemccarron-gamedev6685
    @lukemccarron-gamedev6685 Год назад +1

    Awesome tutorial very easy to follow great teaching style

  • @airish1777
    @airish1777 10 месяцев назад +1

    Thanks this was really helpful!!!

  • @underbelly69
    @underbelly69 Год назад +6

    would be great for hands tracking - and if the hands are lost from view for a moment - to ease the hands to sides so they dont suddenly disappear

  • @FabioVitulano
    @FabioVitulano 5 месяцев назад +1

    hi, if i haven't the reference for the hands (XRI pinch/grab interaction/activate), how can i do for set the XR Hands on the Hands of my character?

  • @ItsSimplyDash
    @ItsSimplyDash 22 дня назад +2

    anybody got a solution for my guys legs spreading? Not tryna make the game 18+ yk?

    • @4Aces.
      @4Aces. 11 дней назад +1

      move the Left Leg IK Hint accordingly

  • @JustArus
    @JustArus Год назад +3

    8:30 My character doesn't want to walk with bent legs; if the character is in the air, it walks somehow, but when it bends its knees, the target stays in place and the legs start flying.

    • @ivanpardo7976
      @ivanpardo7976 Год назад

      Happens the same to me. Did you manage to solve it?

    • @BananaBL-Bonelab
      @BananaBL-Bonelab Год назад

      @@ivanpardo7976 for me i had to keep the default settings for the foot solver

    • @mhdnaderlabbad5887
      @mhdnaderlabbad5887 Год назад +1

      becase your character has collider set your character to a new layer call player

    • @thameesmohamed3582
      @thameesmohamed3582 Год назад +1

      add a mesh collider for your surface

  • @Dion-vr1ek
    @Dion-vr1ek Месяц назад

    Can't add script component 'AnimateOnInput' because the script class cannot be found. Make sure that there are no compile errors and that the file name and class name match.

  • @StoneOakvalleyStudios
    @StoneOakvalleyStudios Год назад +6

    Doing a Two-Bone Constraint on a arm which has 3 bones? You can very well see that your shoulder bones does not move at all - stuck together with your neck, in physical real life body it does move 3 bones, try it :-) Try with Chain IK instead and limit that to 3 bones, where root = LeftShoulder and Tip = LeftHand, then source is Left IK Target = a whole different movement and lets us stretch the hands in VR without beeing limited by that unmoveable shoulderbones.

    • @epoch2435
      @epoch2435 4 месяца назад

      Thank you, i was dealing with this problem.

  • @A_walk_in_the_park
    @A_walk_in_the_park Год назад +4

    This is a great video, but how would you add a body to a rig with hand tracking ?

  • @kanchanasaravanan8142
    @kanchanasaravanan8142 Год назад +1

    Hi in this video there is a handmodel seems like already has been made with animations. SO in order to follow this video i need to do that first right. Is there a video for this

  • @chimerascorner3023
    @chimerascorner3023 4 месяца назад

    after setting up the target and hints exactly the way you showed, my characters hands still wont budge.

  • @kvashir
    @kvashir Год назад +1

    I have problems implementing this, when I move my body shakes and I have tried everything

  • @mshuang5122
    @mshuang5122 2 месяца назад +1

    Help! I downloaded the scripts and imported to Unity, it warned "Assets\VR Body\AnimateOnInput.cs(10,12): error CS0246: The type or namespace name 'InputActionProperty' could not be found (are you missing a using directive or an assembly reference?)". Also I cannot find IK Foot Slover (scripts)

    • @ItsSimplyDash
      @ItsSimplyDash 22 дня назад

      the scripts, are in the description

  • @RichardKnox-fp7vd
    @RichardKnox-fp7vd 10 месяцев назад +1

    For anyone else that had a problem with the blue hands not moving the arm IK just instead of making an empty object in the origin tab just drag the Right Arm IK_Target and the Left Arm IK_Target into the target IK hope this helps somebody :)

    • @LyssFr
      @LyssFr 9 месяцев назад +1

      i don't understand

  • @robatwarrior3591
    @robatwarrior3591 10 месяцев назад +4

    how do you change the main cameras position?

    • @ItsSimplyDash
      @ItsSimplyDash 22 дня назад

      you go to the main camera, and you move it.

  • @HarshaRajendranHarsha
    @HarshaRajendranHarsha 10 месяцев назад

    Hi I am facing a similar issue. The upper hands, the face torso Upto the hips are working great. The legs seem to be in air for sometime and then it begins to fold completely near the origin ( I.e the spot where the AVATAR was there prior to pressing the play button ). and have bent knees at 90 degrees far away from the origin. I am Having issues with the legs. Initially they float horizontally and later they bend in a slow manner. And the knee leg doesent lift when I lift my legs here. I got them to move front, back and towards the sides. Help me please. ‼️

  • @GorillazVr23
    @GorillazVr23 7 месяцев назад

    help when i play my game my character just floats above the vr hands and it dosent stand up strait

  • @appgaming684
    @appgaming684 3 дня назад

    CAN SOMEONE PLEASE PROVIDE ME OR SHOW ME FROM WHERE I CAN GET THESE XR ORIGIN HAND MODELS FOR VR OR WILL SKETCHFAB WORK?

  • @SwapnilLadkhedkar
    @SwapnilLadkhedkar Год назад +2

    @Valem Tutorials, I am wearing headset and then trying the control the body. My problem is that whenever I rotate my head in up and down my VR Body gets behind / Infront of camera means when i look down my body gets behind me and looking up my body gents infront of my camera. and in inclined rotation. staying straight it perfectly aligned

    • @Smettb00
      @Smettb00 Год назад

      Have you ever found a solution for this?

    • @user-ix1fl1nc5l
      @user-ix1fl1nc5l 11 месяцев назад

      Hey did u figure it out? I’m having the same issue

    • @GabrielBSL
      @GabrielBSL 11 месяцев назад

      Did you solve it?

    • @winfredwang2282
      @winfredwang2282 11 месяцев назад

      same issue here, did anyone figure it out?

  • @HarshaRajendranHarsha
    @HarshaRajendranHarsha 10 месяцев назад

    Hi I am facing a similar issue. The upper hands, the face torso Upto the hips are working great. The legs seem to be in air for sometime and then it begins to fold completely near the origin ( I.e the spot where the AVATAR was there prior to pressing the play button ). and have bent knees at 90 degrees far away from the origin. I am Having issues with the legs. Initially they float horizontally and later they bend in a slow manner. And the knee leg doesent lift when I lift my legs here. It got them to move front, back and towards the sides. Help me please. It’s quite urgent actually.

  • @mononofu2336
    @mononofu2336 Месяц назад

    Hello from Japan.
    I was having the same problem with the player's feet not following.
    The foot was moving correctly up to a certain height, but from a certain height the target was not following and the foot was free.
    However, I set the value of RayStartYOffset in IKFootSolver to -0.5 and it worked correctly.
    I hope this helps someone.
    P.S.
    Mr.Valem. I'm always looking forward to your reference. Thank you.

  • @MHKart2000
    @MHKart2000 3 месяца назад

    Fingers doesn't work for me ! Binding Warning Alert is Showing in Animator Component. How can I Fix it?

  • @saikatpatra9365
    @saikatpatra9365 11 месяцев назад

    Second Float always NaN - Blend Tree both Left and Right Hand Layer..... Occurs only Unity 2022.3.xx...please give one solution

  • @Carrasine
    @Carrasine Год назад +1

    is it possible, to do the rig setup at runtime? Or at least the assignment of constraints?
    I'm trying to build a rig on a character model that I load at runtime out of an online db, so I can't pre-set-up the rig...

  • @FranciscoMorales-b3b
    @FranciscoMorales-b3b 9 месяцев назад

    Hi, i have a problem, when i move the character , the feet target doesnt move, and stays in the position when they spawned, i already try ti change the step distance, etc but its still the same

  • @SavAndOak
    @SavAndOak Год назад +1

    For some reason when i test it my camera is stuck by the legs can anyone help?

  • @AkshayKumar-h9l
    @AkshayKumar-h9l Год назад +2

    But my HMD rotates the entire body rather than the head alone. How to resolve it, Valem ? If anyone knows how to resolve the issue, help me.

  • @Samuel-bd1ms
    @Samuel-bd1ms 8 месяцев назад +1

    Thank you for this tutorial, it really helped me get things started! Do you have a list of sources that you used for this video I can reference?

  • @yks7188
    @yks7188 Год назад +1

    Great. Thanks for sharing🥳

  • @gamerhd1450
    @gamerhd1450 Год назад +2

    I am having trouble making the character walk. I added everything as in the video, and the character crouches when it touches the ground, but when i drag it forward, it floats. Any help?

    • @ValemTutorials
      @ValemTutorials  Год назад

      I would suggest to play with the setting of the Leg IK and make sure that the raycast used by it has found something. I know they are a bit tricky. :/

    • @hazelyokouji2005
      @hazelyokouji2005 Год назад

      no just lower the character body like the -0.64 value in the IK rig , change it to -1 or something , the feet is just not feeling the collision of the ground thats all

    • @ArmedMicrowave
      @ArmedMicrowave 9 месяцев назад

      Did you ever find a solution to this, because nothing I'm doing seems to work

    • @gamerhd1450
      @gamerhd1450 9 месяцев назад

      @@ArmedMicrowave nope

  • @16rosati
    @16rosati 7 месяцев назад

    Im trying to get the avatars hips to pull backwards when I crouch so that the hips dont go into the ground and the legs dont freak out, similar to how FinalIK does it. Anyone have any suggestions?

  • @KillerForEver49
    @KillerForEver49 6 месяцев назад

    Hi,
    I try to do as he said but when I trying to implement IK foot solver there is no walking annimation and me foot start on origin point Someone have a idea why ?

  • @KilianSpeiser
    @KilianSpeiser 5 месяцев назад +1

    Great tutorial, very helpful and efficient. However, I struggle to find the version of the IKFootSolver script that you are using. The one I found does not have the option to change the foot rotation offset. Could anyone please share where I can find the correct version of the script? Thanks!

  • @appgaming684
    @appgaming684 3 дня назад

    Does Anyone know from where i will find my XR origin?

  • @kelpez
    @kelpez Год назад +1

    It doesent even work for me. the whole model is like 500 feet in the air and when I try and put it where i need it all it does is not follow the same head position of the camera and Im getting like 400 errors

    • @Nnadi_II
      @Nnadi_II Год назад +1

      me too i hope he can address this

  • @Not_real_channelsss
    @Not_real_channelsss 9 месяцев назад

    do you think you can help. for some reason my model just goes down and does the splits and everything else works but my model just goes down and does the splits and its just ruining it.

  • @TheScienceIsReal
    @TheScienceIsReal 7 месяцев назад

    How would one go about making the arms stretch to match arm length of user?

  • @StephenLee-s3h
    @StephenLee-s3h 11 месяцев назад +1

    Great tutorial. I'm having issues with my character going through walls. My walls have box colliders. Should I be adding a Ragdoll to the character for collision detection? Or should add a Rigidbody to VR Character IK and then add capsule colliders to each body component - arms, legs, etc. Should be easy, but I'm just learning. Thanks for any help you can provide.

    • @daylightwastaken
      @daylightwastaken 9 месяцев назад

      On the XROrgin, you can use a character controller with the “Character Controller Driver” component, which makes it more dynamic for VR use.

  • @diegoaranda382
    @diegoaranda382 10 месяцев назад +1

    Hi, where can I find the IK Foot Solver Script?, I didn't find it on the Robot Walk videos!

    • @qis2999
      @qis2999 9 месяцев назад

      there is a drive link in Description

    • @hafsa8010
      @hafsa8010 9 месяцев назад

      can u show me where to find that script

    • @qis2999
      @qis2999 9 месяцев назад

      @@hafsa8010 drive.google.com/file/d/1eSaeMTLxWpRYo8ZYM6hprlMG-N716REL/view

  • @saniyeekinci
    @saniyeekinci 7 месяцев назад

    ayaklarım yerde kalıyor çok geç geliyor ve karakterim oturuyor yerde onu nasıl düzeltebilirim

  • @paulemsley9658
    @paulemsley9658 7 месяцев назад

    when i make this avater walk around, the body and any held grabbables jitter very badly. any ideas?

  • @pizza5269
    @pizza5269 8 месяцев назад

    Hi, could u help me with animation inputs and XR rig from VRIF? It doesnt work. I did all steps from your video but this last part I cannot make it possible

  • @donna2016..
    @donna2016.. Месяц назад

    After i did the IK Foot Solver my character just floats to the sky D:

  • @C4G123
    @C4G123 5 месяцев назад

    my player wont move forward :(

  • @MajorBatman
    @MajorBatman Год назад +1

    Brilliant!

  • @Kali996
    @Kali996 Год назад +4

    at 9:08 i find the foot rot offset is better at X -120 and Y 120

  • @q1pz
    @q1pz 25 дней назад

    i follow along for my project at school, and its really really works MAKE SURE TO NOT SKIP ANYTHING ALRIGHT GUYS ! thank you valem

  • @LarryJunior334
    @LarryJunior334 9 месяцев назад

    Why does my characters head rotate so much when I turn my head on the X or Z axis

  • @flixthedev
    @flixthedev 10 месяцев назад

    How do I do this on the Valve Index, with the hand animations

  • @Neepo1220
    @Neepo1220 Год назад

    Whenever I start the game my model always looks to the left of instead look straight like the camera. How do I fix?

  • @FRTesports
    @FRTesports Год назад

    So I am trying to use this with the physics tuts and for some reason the hand are not conected with the body and still want to not move to the points and when I try to move the hand they start rocking back and forth

  • @ivanpardo7976
    @ivanpardo7976 Год назад

    The part of the legs animation doesn't work. They get stuck in one place and float arround while moving the character.

  • @clxssics
    @clxssics Год назад

    I have a problem with my rig where it makes it so when I look down I can see the inside of the body of my model, is there anyway I can fix this?

    • @eriklazarre4391
      @eriklazarre4391 Год назад

      Probaly its because of where the target for your head is. Try playing around with it in playtime until you get the right value then save it.

  • @scrabble567
    @scrabble567 11 месяцев назад +1

    I cant find bone renderer or two bone ik or anything

    • @scrabble567
      @scrabble567 11 месяцев назад +2

      i didnt install animation rigging lmfao sorry

  • @AudenClifford
    @AudenClifford 10 месяцев назад

    how did you make it so that the geometry of the model's head is invisible to you? I can't see anything past the inside of my model's eye socket. I can see through most of the head because it's mostly backfaces, but there are certain spots that can be seen by the camera. I tried moving the head offset so the camera was outside the head's geometry and now the rig swings around wildly when I turn my head and my model's arms don't reach the full extension of my controllers.

    • @TikkaQrow
      @TikkaQrow 10 месяцев назад

      In the Main Camera, you'll find a setting called 'Clipping Planes' Set the value labeled as 'Near' to a larger number than 0.01. A value of 0.1 removes all geometry within 10 centimeters of the camera. A value of 1 removes all geometry within 1 meter.

  • @Varrox
    @Varrox Год назад +1

    The walking animation does not work, I followed everything correctly and it still does not work. I know it is the IK Foot Solver being the problem since when I disabled it, the ik for the legs worked

    • @kneallian
      @kneallian Год назад

      where did you find the foot solver? i cant see it

    • @Varrox
      @Varrox Год назад +2

      @@kneallian it's the google drive file in the description

    • @Stoleyourgirlbozo
      @Stoleyourgirlbozo Год назад

      I have the same thing did you figure it out

    • @Varrox
      @Varrox Год назад

      @@Stoleyourgirlbozo yeah I did, it's the unity version, you need to use the same as valems in this tutorial

    • @Stoleyourgirlbozo
      @Stoleyourgirlbozo Год назад

      @@Varrox oh all I had to do was import the whole thing (I was only using the script) And re adjust then step distance

  • @axs203
    @axs203 Год назад +2

    I wonder if this is preparing us for something coming up 😉

  • @GerardCurrius
    @GerardCurrius 6 месяцев назад

    Congrats for this tutos, amazing!!! One question, when create VRRig scrips there is missing VRMap functions and more, could you share the file, mine doesn't work copying exactli your script, Thanks a lot!

  • @sanjayselvaraj1090
    @sanjayselvaraj1090 Год назад +1

    My view is from the bottom it's not following the exact position of head but i checked all the positions everything seems to be perfect. Please guide me in this

    • @user-ix1fl1nc5l
      @user-ix1fl1nc5l 11 месяцев назад

      Hey did I find the solution for this.

  • @TheScienceIsReal
    @TheScienceIsReal 7 месяцев назад

    For some reason the head of my character is going to the feet (where my camera is). Basically the head is right on the camera but the rest of the body isn't following it. Any ideas?

    • @TheScienceIsReal
      @TheScienceIsReal 7 месяцев назад

      nvm it was just an offset problem i see

  • @nctrnesky2037
    @nctrnesky2037 7 месяцев назад +1

    HElp mee, i have problemm with the head vr target and head ik target...i followed every step but when i hit play, the camera was on the character chest instead of being in the eye level of the player. I tried to move the head vr target, head IK target, even the main camera to the eye level but the camera didnt move to the desired position, the character body moves up instead. Anyone please help me ASAP T^T Thank youu

    • @AbhijitPatil-s7e
      @AbhijitPatil-s7e 6 месяцев назад

      yo did you find an ans to this ?
      i am facing the same problem

    • @nctrnesky2037
      @nctrnesky2037 6 месяцев назад

      @@AbhijitPatil-s7e i found out how, and it works. but when i try to do the same to the character in other scene, it doesnt work again T^T. what i did was change the pivot of the head target to center. i also change the tracking position offset for the head under IK target follow VR rig. or u can try change the tracking origin mode to floor under XR origin game object. i dont know which one will help you but i hope it helps. goodluck

  • @hasnomoney1800
    @hasnomoney1800 Год назад +1

    So I have an issue where if I I use the animator with the avatar bone setup that the hands won’t fallow the hands position(stuck in unity default animation) . But when I take off the avatar bones off the animator it would be perfectly fine

    • @sivasakthinataraj4447
      @sivasakthinataraj4447 Год назад

      me too the same issue.

    • @hasnomoney1800
      @hasnomoney1800 Год назад

      @@sivasakthinataraj4447 I fixed my issue by doing two things. updating unity from 2019 to 2022. The second thing is I reimported the model under a differnt name and replaced the prefab I already made. I don't know which one of those things fixed it.

  • @feral.rage.studio
    @feral.rage.studio 4 месяца назад

    That is amazing, but is there any chance you make some tutorial for VRIF please ?

  • @MistyVR5678
    @MistyVR5678 10 месяцев назад +1

    weres the ik foot solver script

    • @qis2999
      @qis2999 9 месяцев назад

      there is a drive link in Description

  • @poupiw
    @poupiw 9 месяцев назад

    Is it possible with this setup to make it like in your old video How to Make Physics Hands in VR and have hands not go through physical objects ?

  • @PrismX_8
    @PrismX_8 5 месяцев назад +1

    How do i calibrate the height to me the same as me?

    • @GadREKT
      @GadREKT 4 месяца назад

      Hey did you find a solution?

    • @PrismX_8
      @PrismX_8 4 месяца назад

      @@GadREKT no sadly i looked everywhere for a solution even chat gpt

  • @JoelIndetzki
    @JoelIndetzki 6 месяцев назад

    great Video! I Would just like to know how to add other Grab Poses. I cant seem to find any tutorial for that.

  • @WhoopyStick
    @WhoopyStick Год назад +2

    Excellent tutorial as always @Valem . With a little tweaking in the inspector I got all my body parts to line up. I am using continuous movement provider action based for my locomotion and noticed there is jittering and lagging of the VR model toward the targets (I kept my renderers on to test) as opposed to when not moving with locomotion. I attempted a predictive update function and even a movement provider monitoring through XRNodeState but still got lag when moving. Do you have a method of fixing this or a simple setting solution I haven't tried? It seems like it should be reasonably easy to do but I spent all my brainpower on a Grappling gun yesterday and now I am bewildered. Any help would be great! or if anyone in the comments has a fix? Thanks again!

    • @jamesprise4252
      @jamesprise4252 Год назад

      any problems getting the hand tracking to work?

    • @fashvr9961
      @fashvr9961 Год назад

      please tell me you found a solution

    • @jamesprise4252
      @jamesprise4252 Год назад

      @@fashvr9961 nope. still a mess

    • @fashvr9961
      @fashvr9961 Год назад +7

      to anybody who is experiencing this, here is the solution. just switch the Update method in "IK Target Follow VR Rig" script from LateUpdate to just Update. your welcome

    • @jamesprise4252
      @jamesprise4252 Год назад

      @@fashvr9961 will try tomorrow. thanks !

  • @shantistieglitz8355
    @shantistieglitz8355 Год назад +1

    Did the entire thing and got stuck in the hand animation part!
    I don't seem to have the same "Input action reference" assets in my project as shown in the video (i updated open xr)
    and none of the ones i place in the "animate on input"script seem to work

    • @Zofia21
      @Zofia21 Год назад

      hey, I have the same problem. Did you @shantistieglitz8355 managed to solve it?

    • @shantistieglitz8355
      @shantistieglitz8355 Год назад +1

      @@Zofia21 No actually, i did a messy workaround...

  • @XboxPlayerPL
    @XboxPlayerPL Год назад +1

    How about finger movement? Currently, I can't find any solution on how to make a finger movement in Oculus VR. In the video I can only see 4 pre-defined poses. What if i want the character hands to behave exactly like the blue hands?

    • @1playfair
      @1playfair Год назад

      This was very difficult for me too man. The oculus hands for example are very complex. But basically are a blend tree with various animations attached based on parameters. I did successfully animate single fingers to do things but man it was a ton of work. In the end I just bought a very cheap collection of animations that I picked and chose a few that I really wanted for my game. They are damn near at the same timing as the oculus hands but move more realistically which is what I wanted. Good luck on yours man.

    • @XboxPlayerPL
      @XboxPlayerPL Год назад

      @@1playfair Yeah, i did the same thing. But the problem with this approach is this: there are finite hand animation that i can show to user, and there is some latency.

    • @TheIndieGamesNL
      @TheIndieGamesNL Год назад

      @@XboxPlayerPL
      using UnityEngine;
      public class HandIKPose : MonoBehaviour
      {
      [System.Serializable]
      public class Retargetable
      {
      public Transform source;
      public Transform destination;
      public Vector3 offset;
      public Retargetable(Transform source, Transform destination, Vector3 offset)
      {
      this.source = source;
      this.destination = destination;
      this.offset = offset;
      }
      }
      [System.Serializable]
      public class Finger
      {
      public Retargetable bone1;
      public Retargetable bone2;
      public Retargetable bone3;
      public Retargetable bone4;
      public Finger(Retargetable bone1, Retargetable bone2, Retargetable bone3, Retargetable bone4)
      {
      this.bone1 = bone1;
      this.bone1 = bone2;
      this.bone1 = bone3;
      this.bone4 = bone4;
      }
      }
      public Retargetable wrist;
      public Finger[] fingers;
      // Update is called once per frame
      private void FixedUpdate()
      {
      for (int fingerIndex = 0; fingerIndex < fingers.Length; fingerIndex++)
      {
      Finger finger = fingers[fingerIndex];
      //finger.bone1.destination.localRotation = finger.bone1.source.localRotation;
      finger.bone1.destination.rotation = finger.bone1.source.rotation;
      finger.bone1.destination.Rotate(finger.bone1.offset);
      //finger.bone2.destination.localRotation = finger.bone2.source.localRotation;
      finger.bone2.destination.rotation = finger.bone2.source.rotation;
      finger.bone2.destination.Rotate(finger.bone2.offset);
      //finger.bone3.destination.localRotation = finger.bone3.source.localRotation;
      finger.bone3.destination.rotation = finger.bone3.source.rotation;
      finger.bone3.destination.Rotate(finger.bone3.offset);
      //finger.bone4.destination.localRotation = finger.bone4.source.localRotation;
      finger.bone4.destination.rotation = finger.bone4.source.rotation;
      finger.bone4.destination.Rotate(finger.bone4.offset);
      }
      //wrist.destination.position = wrist.source.position;
      //wrist.destination.localRotation = wrist.source.localRotation;
      }
      }
      here you go mate align them over your rigs hands then remove their meshes if setup right it will follow every hand animation i use this for my zombie survival dayz vr clone you can use it if u like i found it long ago(it should be placed on each hand (left and right) it takes quite some effort to setup as you have to align the offsets by hand till it follows the original hands

  • @mr.liberty8611
    @mr.liberty8611 5 месяцев назад

    I'm on 2022.3.3f1 and I can only assume the ikfootsolver script does not work in the newer unity version. I am not a strong scripter so troubleshooting this is harder for me. I can just tell its a script issue. I also watched the unity lessons and looked at their project files and script and noticed you have a more enhanced script than what they have. I can only assume you changed the script as well. Any insight would be great. Thanks.

    • @mr.liberty8611
      @mr.liberty8611 4 месяца назад

      Nevermind, I got it to work. Was not a script issue. Some weird bug issue with Unity... just deleted part of it, rebooted unity and rebuilt and it works just fine. Curious though when I crouch the legs don't want to move to next spot though, works as expected when standing straight up and down though. Great work btw! I have donated in past and used to have a subscription. Now that I am back to working on things, probably will resubscribe again!

  • @I-MM-O-R-T-A-L
    @I-MM-O-R-T-A-L Год назад

    Do you know how i can disable physical movement for my character while im playing?
    I mean, when i move in the physical world, the player in game also moves.
    How i can disable that? Im using the default VRPawn
    (You are my last hope)

  • @feistycatdevelopment6123
    @feistycatdevelopment6123 Год назад +1

    Hey if anyone knows the fix for this please help!
    Whenever I load in on my VR headset the Model is underground? When I test the game on my pc (not in vr) this dosent happen I don’t know why

    • @BossKing1243
      @BossKing1243 Год назад

      Did you fix it? Honestly just over compensate in the scene editor and drag it higher then keep testing in vr and adjusting till it looks right

  • @seligmanventuresglobal8858
    @seligmanventuresglobal8858 Год назад +1

    Great video, but when I grab objects with a straight hand, the arms arent long enough. Spent all last night trying to work around this but nothing worked (including increasing the bone scale). Any ideas?

    • @nando5487
      @nando5487 Год назад

      have you figured it out? cuz I have same issue

    • @ZOneNOnlyGaming
      @ZOneNOnlyGaming Год назад

      You could try limiting the distance that its possible to pick things up to match the length of the characters arm when fully extended. That way, if that characters arm can't reach it, it can't pick it up

  • @yousefezgg4171
    @yousefezgg4171 Год назад

    hello valem i hope you see my message. i made a new game project yesterday the when i open my project today everything is deleted it says that removing file error and the document is empty how do i fix it.

  • @BlueBit09
    @BlueBit09 Год назад +1

    which video did you make the FootSolver in?
    edit: nvm I am dumb.

    • @hazelyokouji2005
      @hazelyokouji2005 Год назад +4

      can you help? i cant find foot solver , edit : nvm i am dumb too

    • @mhdnaderlabbad5887
      @mhdnaderlabbad5887 Год назад

      where did you get yall the code from ?@@hazelyokouji2005

    • @hafsa8010
      @hafsa8010 9 месяцев назад

      where did u find it guys
      @@hazelyokouji2005

  • @babbabbabbabbab
    @babbabbabbabbab Год назад +9

    Tip for anyone using the script wondering why the ingame hands move fatser than your real cotrollers its because of lerp here is the late update function without the lerp
    void LateUpdate()
    {
    transform.position = head.ikTarget.position + headBodyPositionOffset;
    float yaw = head.vrTarget.eulerAngles.y;
    Quaternion targetRotation = Quaternion.Euler(transform.eulerAngles.x, yaw, transform.eulerAngles.z);
    transform.rotation = targetRotation;
    head.Map();
    leftHand.Map();
    rightHand.Map();
    }
    }