Two Handed Grab with Unity XR

Поділитися
Вставка
  • Опубліковано 14 лип 2024
  • Two hand grab used to be a very complicated thing to do, but now thanks to the updated xr grab interactable of Unity XR toolkit, it can be setup in just a few click !!!
    ❤️ Support on Patreon : / valemvr
    🔔 Subscribe for more Unity Tutorials : www.youtube.com/@ValemTutoria...
    🌍 Discord : / discord
    🐦Twitter : valemvr?lang=en
    👍 Main Channel : / @valemvr
    🔥 Tiktok : / valemxr
    ····················································································
    📝Best VR Assets ( These links are Affiliate links which means it costs the same to you and I get a small commission. Thanks for your support!)
    VR Interaction Framework
    assetstore.unity.com/packages...
    Hexabody (Physics VR Player)
    assetstore.unity.com/packages...
    Mirror and Reflection for VR
    assetstore.unity.com/packages...
    Auto Hand (automatic hand grab pose)
    assetstore.unity.com/packages...
    Hurricane VR (vr physics interaction)
    assetstore.unity.com/packages...
    3d Hand Model for VR
    assetstore.unity.com/packages...
    ····················································································
    Full Series on How to make a VR game • How to Make a VR Game ...
    ····················································································
    If you enjoyed this video, here are some other really good channel you should appreciate :
    ⌨️ Game Dev
    Brackeys : / @brackeys
    Dani : / @danidev
    Code Monkey : / @codemonkeyunity
    👨‍🎓 Vr Dev
    Justin P Barnett : / @justinpbarnett
    Vr with Andrew : / @vrwithandrew
    ····················································································
    00:00 Intro
    00:39 Simple Grab
    02:43 Multiple Grab
    06:40 XR General Grab Transformer
    08:54 Outro
    #vr #vrdev #madewithunity

КОМЕНТАРІ • 45

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

    Finally. Thank you so much brother. I have been waiting for this my whole life.

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

    This is insanely cool! The fact that this function was added to the xr toolkit!

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

    I remember valem released two hand grab 2 years ago, but it didn't work for me. But now it does, thank you Valem!

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

    Like always, amazing content, keep up the great work my friend :)

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

    This was great Valem! Excellent work! You are a great educator, thank you for sharing.

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

    WOW!!!!!!!!!! i was expecting to have to do hundreds of lines of code and days of debugging to do this, seems its already in there. really Valem, Unity needs to be paying you.

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

    This is massive ! Great news thanks :) , but when we release a hand, the other hand switch from attachtransform 2 to attachtransform 1. There should be a way to precise, left hand is always on attachtransform 2 without switching it automatically

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

    Great vid once again. I'd love if you were able to cover the kind of hand interactions AutoHand uses where the fingers curl to the collider of the thing they're picking up. I bet its super complicated though.

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

    very cool

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

    Awesome! Can you make a tutorial for hand poses and teleporter with the new XR hands?

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

    W tutorial

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

    Great video ! Is it possible to make a tutorial for animations in vr ? how to use and add animation when clicking on a VR button etc, thanks !

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

    Bro I clicked on your channel and it said you posted this 44 seconds ago lol

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

    Thanks, great video.
    When scaling, is there a way to control this in detail, e.g. by modifying a mesh programmatically?

  • @Atlas_966
    @Atlas_966 Рік тому +4

    PLEASE make a IK tutorial!!

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

      He has one from awhile ago

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

      @@mikey7095 “from awhile ago”, I tried it recently and it doesn’t work for me

    • @msms-rd6us
      @msms-rd6us Рік тому +1

      @@Atlas_966 same

    • @msms-rd6us
      @msms-rd6us Рік тому +1

      @@Atlas_966 it works but its very buggy

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

      @@msms-rd6us Yeah thats why he needs to update it!

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

    Love the videos as always. Is there a way to detect when only the primary hand is causing an activate event. For example only the primary hand is pulling the trigger of a gun?

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

      I currently wrote a custom override for OnSelectEntered and Exited to track which hand is primary and secondary but was wondering if there was a more elegant solution that was already integrated

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

    Hey Valem, thanks for all the videos! I had a quick question: I am trying to make a grab interactable that I select with one hand and activate with the other, but I haven't found a solution to accomplish this yet. In my example I have a can of food that I can pick up, but to open the can I want the player to grab the lid of the can with trigger to open it. Any ideas how to accomplish this? It seems like the "Activate" event on a grab interactable only fires when the hand holding the object pulls the trigger

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

    I’m building a staff weapon so need to have a different attach transform for the left and right hands. Is that possible now too?

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

    do a tutorial for a vr ak pleaseee

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

    With this new system, how can I set up custom hand poses for left & right hand?

  • @jas-db3nu
    @jas-db3nu Рік тому +1

    Do you know what may be the problem that I can only grab objects by thumb and index finger touching together?

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

    is there a way to make it so the one with the 2 attach transforms wont snap the secondary hand to the primary once the old primary let go? basically keep the second hand the secondary one once the primary is let go?

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

      I think making a script that will swap the two attach transform when release would work ! :)

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

      @@ValemTutorials let me try that

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

      @@ValemTutorials it works one way, but now if the secondary hand releases the main hand swaps to the secondary?

    • @RK-vt1rw
      @RK-vt1rw Рік тому

      @@SwamySwank could you show me your script for this?

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

      @@RK-vt1rw still working on it, i have like half of it working but I'm trying to get it to work

  • @NiteshKumar-zo4mg
    @NiteshKumar-zo4mg Рік тому

    Can you make tutorial on vr multiplayer in 2023, I watched your three year old vr multiplayer videos but now many things are changed in unity

  • @intensevideogame
    @intensevideogame 10 місяців тому +1

    there is no secondary attach transform for me, its not even on unity's official documentation.

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

      update your xr interaction toolkit package to 2.3.2

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

      @@tinytea3323 that did it, thanks.

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

      How do I update it? @@tinytea3323

  • @msms-rd6us
    @msms-rd6us Рік тому

    it wont let me click the multiple option

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

      Make sure you have unity xr 2.3 installed, you can have a look at it in the package manager

    • @msms-rd6us
      @msms-rd6us Рік тому

      👍

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

    Man, you make unity and VR development so easy. Valem >>> ChatGPT. Thanks