Introduction to VR in Unity - PART 10 : TWO HAND GRAB

Поділитися
Вставка
  • Опубліковано 26 сер 2020
  • How to grab with two hand an object with the Unity XR Toolkit.
    ❤️ Support on Patreon : / valemvr
    🔔 Subscribe : www.youtube.com/@ValemVR?sub_...
    🌍 Discord : / discord
    🐦Twitter : valemvr?lang=en
    🔥 Tiktok : / valemxr
    👍 Learn VR Development : www.youtube.com/@ValemTutoria...
    Download the gun : sketchfab.com/3d-models/m4-ca...
    Offset between two rotations : forum.unity.com/threads/get-t...
    PREVIOUS EPISODE : • Introduction to VR in ...
    ····················································································
    📝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 want to learn VR dev, here are some other really good channel you should appreciate :
    ⌨️ Game Dev
    Brackeys : / @brackeys
    Dani : / @danidev
    Code Monkey : / @codemonkeyunity
    👨‍🎓 Vr Dev
    Valem Tutorials : / @valemtutorials
    Justin P Barnett : / @justinpbarnett
    Vr with Andrew : / @vrwithandrew
    ····················································································
    #vr #vrdev #madewithunity #valem #unity
  • Ігри

КОМЕНТАРІ • 214

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

    Hey guys ! I made an update of this series on my channel Valem tutorial that you can find here : ua-cam.com/video/fM0k2n7u8sc/v-deo.html

  • @enchantedf0rest934
    @enchantedf0rest934 3 роки тому +20

    You are the best vr unity teacher ever.

  • @nullname68
    @nullname68 Рік тому +17

    Hello again XR Interaction Toolkit 2.0 has made some of the things deprecated like the selectingInteractor so I updated the code so you can still use this in 2.0:
    public List secondHandGrabpoints = new List();
    private IXRSelectInteractor secondInteractor;
    private Quaternion attachIntialRoation;
    public enum TwoHandRotationType { None, First, Second }
    public TwoHandRotationType twoHandRotationType;
    public bool SnapToSecondHand = true;
    private Quaternion intialRotationOffset;
    void Start()
    {
    foreach (var item in secondHandGrabpoints)
    {
    item.selectEntered.AddListener(OnSecondHandGrab);
    item.selectExited.AddListener(OnSecondHandRelease);
    }
    }
    public override void ProcessInteractable(XRInteractionUpdateOrder.UpdatePhase updatePhase)
    {
    if (secondInteractor != null && firstInteractorSelecting != null)
    {
    if (SnapToSecondHand)
    {
    firstInteractorSelecting.transform.rotation = GetTwoHandRotation();
    }

    else
    {
    firstInteractorSelecting.transform.rotation = GetTwoHandRotation() * intialRotationOffset;
    }
    }
    base.ProcessInteractable(updatePhase);
    }
    private Quaternion GetTwoHandRotation()
    {
    Transform attachTransform1 = firstInteractorSelecting.transform;
    Transform attachTransform2 = secondInteractor.transform;
    switch (twoHandRotationType)
    {
    case TwoHandRotationType.None:
    return Quaternion.LookRotation(attachTransform2.position - attachTransform1.position);
    case TwoHandRotationType.First:
    return Quaternion.LookRotation(attachTransform2.position - attachTransform1.position, firstInteractorSelecting.transform.up);
    case TwoHandRotationType.Second:
    return Quaternion.LookRotation(attachTransform2.position - attachTransform1.position, secondInteractor.transform.up);
    default:
    return Quaternion.LookRotation(attachTransform2.position - attachTransform1.position, secondInteractor.transform.up);
    }
    }
    public void OnSecondHandGrab(SelectEnterEventArgs args)
    {
    secondInteractor = args.interactorObject;
    intialRotationOffset = Quaternion.Inverse(GetTwoHandRotation()) * secondInteractor.transform.rotation;
    }
    public void OnSecondHandRelease(SelectExitEventArgs args)
    {
    secondInteractor = null;
    }
    protected override void OnSelectEntered(SelectEnterEventArgs args)
    {
    attachIntialRoation = args.interactorObject.transform.localRotation;
    base.OnSelectEntered(args);
    }
    protected override void OnSelectExited(SelectExitEventArgs args)
    {
    secondInteractor = null;
    args.interactorObject.transform.localRotation = attachIntialRoation;
    base.OnSelectExited(args);
    }
    public override bool IsSelectableBy(IXRSelectInteractor interactor)
    {
    bool isalreadygrabbed = firstInteractorSelecting != null && !interactor.Equals(firstInteractorSelecting);
    return base.IsSelectableBy(interactor) && !isalreadygrabbed;
    }

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

      THANKYOOUUUUOUUU REALLY THANKYOU!!

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

      @@sweetflush277 you are welcome :)

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

      Holy Fuck, thank you so much for this, I actually love you. Unity said that my override arguments were invalid and I was lost for like 45 minutes rewatching the video. You're literally Him.

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

      thanks man you saved me 10 hours of searching the new scriptline

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

      I use the snap turn provider and when i turn my interactable gets offset every time i have tied everything i could think off but nothing worked for me

  • @autumn_id
    @autumn_id 3 роки тому +12

    You asked us to write how did we find this course, so...
    I just typed "Unity VR" in UA-cam search and here I am. Your videos are literally the first ones in the search so its very easy to find them.
    I can't even describe how helpful your videos are. Thank you, Valem. Thank you very much.

    • @ValemVR
      @ValemVR  3 роки тому +4

      Thanks I really appreciate it ❤️

  • @rollizle
    @rollizle 3 роки тому

    Amazing tutorial, Valem. So happy to have caught up in your tutorial series. So cool!

  • @JokerKizer
    @JokerKizer 2 роки тому +1

    Thank you for this series! You answered every question / problem I had run into trying to setup with Oculus Integration. You are amazing.

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

    He's done it again, another life saving tutorial. Absolutely beautiful, keep up the good work man

  • @pixelb0i255
    @pixelb0i255 3 роки тому

    @Valem as always you ROCK! Thanks for answering the question with this video.

  • @tommyford1301
    @tommyford1301 3 роки тому

    Finished all of it! cant ait to use this knowledge, thankyou so much Valem you've motivated me and im sure many others to explore the world of VR Dev!

  • @theodormandilaras3976
    @theodormandilaras3976 3 роки тому

    Very good tutorial. I followed every video and I think almost every new topic about VR in Unity is covered. Thanks a lot, you really helped me :D

  • @LukaszBoros
    @LukaszBoros 2 роки тому

    Wow, I've learnt a lot from this tutorial. You're quick, concise and to the point. Much better than many VR tutorials on the Udemy platforms. I found this one via googling "two hands grab unity VR" or something like this and bang! An elegant solution with many interesting configuration options. Thanks for this!

  • @christophercoutinho9281
    @christophercoutinho9281 3 роки тому

    Super Tutorial on how to do a 2 handed grab. Very well explained.

  • @protectore77
    @protectore77 2 роки тому

    Thanks for this amazing tutorial. I have no words to describe how much easier it made my journey to VR GameDev. The last part of video made me to consider learning more complex math :0

  • @Knopppp
    @Knopppp 2 роки тому

    Great tutorial, amazing walkthrough for any VR headset

  • @sleonhart
    @sleonhart 3 роки тому

    Super helpful series, thanks a lot!

  • @Vidyadude
    @Vidyadude 3 роки тому

    Thank you so much for doing these!

  • @tlskillman
    @tlskillman 2 роки тому

    Nice tutorial. Smart and dense. Thanks.

  • @NamidaSai
    @NamidaSai 3 роки тому

    Yes. YES! You bloody amazing VR master. Now, give me MOAR! 😘

  • @WOF94
    @WOF94 3 роки тому

    love the vids mate! And they are so much help

  • @xyzux1780
    @xyzux1780 3 роки тому

    Keep up the good work my friend!!

  • @rawadaridi2068
    @rawadaridi2068 3 роки тому

    Great stuff man best vr tutorials

  • @devariiii
    @devariiii 3 роки тому

    Thanks for the tutorials. They have helped me a lot and are really easy to follow along. I think a tutorial about gun recoil would be very cool seeing as you have two guns right now.

  • @sikaar
    @sikaar 3 роки тому +1

    Great Tutorial as usual, with a sense of going as far as possible on the topic ( for example when you create the TwoHandRotationType for later making it easier to change on the fly ). For the next one, I would love
    A) Flying as a locomotion method ( a topic you covered in other videos) - it would also allow to work on gravity applied to the VR rig
    B) Drawing in air, and then moving the drawn object around
    Again congratulations and Keep up this amazing serie !!!

  • @andrestorum7764
    @andrestorum7764 3 роки тому

    Your VR tutorials are awsome! Would love to see a VR racing game tutorial.

  • @DAX_PL
    @DAX_PL 3 роки тому

    Thanks man! This video is very helpful

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

    amazing tutorial.Thanks!

  • @poilingner5763
    @poilingner5763 3 роки тому +3

    Thanks for the tutorial! Love it.
    I am currently working on a recovery VR game for apoplexy in hospitals, this tutorial really helps me a lot.
    Just wondering if it possible to have a tutorial of extension of hand position?
    for example, having your hand in the position 2x further than it is actually in?

  • @jackhassoup
    @jackhassoup 3 роки тому +1

    I absolutely LOVE your videos valem
    it would be really cool if you showed us how to make the character jump

  • @A_C_007
    @A_C_007 3 роки тому +3

    Great videos so far, a tutorial on riding a motorcycle and steering it with one or both hands on grips would be awesome. Throttle with trigger would be fine if rotating throttle is too difficult.

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

    Thanks. Good series.

  • @mario123mario123
    @mario123mario123 2 роки тому

    @Valem, I found this course while searching for VR tutorials. I started a new job at a company and they want a VR-application :) So now im learning the basics and i will have to make that app :P but with your tutorials and help on discord i will be able to do it :D

  • @alanftlim01
    @alanftlim01 3 роки тому

    Awesome course!! I have zero experience and am loving the content and ease of learning!
    In the next video I would love to learn how to do custom hand poses so when grabbing certain objects they have a particular pose.

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

      Thumbs up for this suggestion. I was expecting it already in this tutorial since the intro picture seems to show a custom pose for the left hand.

  • @TheMrPawolo
    @TheMrPawolo 3 роки тому +40

    For this tutorial You are the best Valem :DDDDDD And while I playing your script i found bug if on TwoHandRotationType you select "First" and then you grab rifle with two hand and start doing circles in air with your first hand then gun will rotate in unexpected way. Fortunately it can be easly fixed by changing this line of code
    "targetRotation = Quaternion.LookRotation(secondInteractor.attachTransform.position - selectingInteractor.attachTransform.position, selectingInteractor.attachTransform.up);"
    to this
    "targetRotation = Quaternion.LookRotation(secondInteractor.attachTransform.position - selectingInteractor.attachTransform.position, selectingInteractor.transform.up);" Can't wait for your next tutorials :D

    • @ValemVR
      @ValemVR  3 роки тому +11

      Oh you're right thanks for pointing that out! :o

    • @michaelramczyk4721
      @michaelramczyk4721 3 роки тому

      @@ValemVR Hey, How do I create a continuous motion turn provider instead of snap turn provider?

    • @ELRandomMan
      @ELRandomMan 3 роки тому

      Thank you

    • @larsbarthelmess3732
      @larsbarthelmess3732 3 роки тому +1

      @@michaelramczyk4721 there is already a script called something like: continuous turn provider (device-based)

    • @Noodles-jz5jb
      @Noodles-jz5jb 2 роки тому

      @@michaelramczyk4721 add the continuous turn provider conponent instead of the snap turn

  • @Sendit77
    @Sendit77 9 днів тому

    you have renewed my faith in french people

  • @toxic_narcissist
    @toxic_narcissist 3 роки тому

    amazing series

  • @homeslice9642
    @homeslice9642 3 роки тому

    Hi! Thanks for all your awesome content, would you be able to make a video on custom hand poses? Like when you grab the gun if your hand could hold the barrel and trigger properly? Thanks!

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

    I could listen to you talk all day XD

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

      legit my new go to for Unity dev.

  • @GamerReality
    @GamerReality 3 роки тому +2

    Can you make a tutorial about all the things we need to know for VR development in the new 2020 version of Unity?

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

    This is AWESOME for guns that point in the direction of the first Attach Transform, but what code might we use for e.g. wielding a Long Sword with 2 hands? Any ideas?

  • @blazeplayz3158
    @blazeplayz3158 3 роки тому +11

    I just made a fan game of half life in vr called Half Life Alyx and sold it to this company called valb for $20 so thx for making this video!

    • @rhinosquad7488
      @rhinosquad7488 3 роки тому +3

      bruh moment

    • @nace6849
      @nace6849 3 роки тому +3

      Yeet and lmao

    • @dwsnb
      @dwsnb 3 роки тому +1

      Lmao imagine if half life alyx was made in unity

  • @xana4066
    @xana4066 3 роки тому

    Love the series. Very isnpiring. Maybe it's already time to get more into the visual aspect of VR-Development. Like how to create a simple body in Blender, make a skeleton and link it in unity to your hands and headset. Just an idea. Enjoy your day!

  • @JayadevHaddadi
    @JayadevHaddadi 3 роки тому

    Thank you teacherji, from India with 💗!:)

  • @TheKamikazedonkey
    @TheKamikazedonkey 3 роки тому

    This was Amazing thank you Valem! Does anyone know how to map a Jump button? Would be a major help for what I am working on

  • @adhochero6619
    @adhochero6619 3 роки тому +8

    great tutorial. i like your approach to this two hand grab. one thing though, how would you keep the gun attached to the second hand if you let go of only the first hand? like if using a bolt action rifle and you want to reload?

    • @gamingforfun1295
      @gamingforfun1295 2 роки тому +1

      One year late but you could remove the piece where it sets the second interaction to null in OnSelectExited

  • @mikechen467
    @mikechen467 3 роки тому +1

    Hi Valem, I think with the grab interactable; movement type kinematic is shaking around hands when moving, but with instantaneous movement type which solves the shaking issue, it cannot be grabbed correctly and many weird angles. Do you think we can fix the shaking issue.

  • @nace6849
    @nace6849 3 роки тому +1

    best Vr Unity UA-camr ever!

  • @succulentsnake
    @succulentsnake 3 роки тому

    Hi Valem, really good tutorial! I have a question. How can I add "weight" to the gun? For example I grab the rifle only with the right hand and I want to feel the weight of it on the front. How can I do that?

  • @KimmyAlmighty
    @KimmyAlmighty 2 роки тому +1

    In latest version of XRTK is obsoleted that boolean types of interactor but they are replaced with interface IXRSelectInteractor So if you want to try this tutorial you may have to check out the patch note or try it in particular version of unity using in this video.

  • @TheIndieGamesNL
    @TheIndieGamesNL 3 роки тому +1

    I wish youd do more SteamVR rig videos the XRrig doesnt work with my Mixed Reality Headset

  • @Break.
    @Break. 3 роки тому +1

    This would be a very big topic and would probably need a new series but could you do a tutorial on multiplayer with mirror networking?

  • @jaybenny5477
    @jaybenny5477 2 роки тому

    hi valem I have watched all your videos in this clip , it gives me great efforts in my VR dev,hope you continue working and upload more videos about this series for beginner,nice work! And i'm working on PC I wonder what laptop can still work well on this for dev project🤔?

  • @user-wt5nu8oy4p
    @user-wt5nu8oy4p 3 роки тому

    Thank you for the wonderful tutorial.
    When I move the analog stick of the controller when I hold the gun, not only the camera but also the gun moves for some reason. What should I do?

  • @TheRukasu
    @TheRukasu 3 роки тому

    Hey Valem, I love your videos and I would love to know how to make a good arm-swinging movement. I ask this because I’m getting a really difficult time trying to make one haha.
    Keep doing great videos!

  • @stephenollier6909
    @stephenollier6909 3 роки тому

    great vid!

  • @Gamerpod.1
    @Gamerpod.1 3 роки тому +1

    Hey Valem! Your probably not going to see this but there is one thing you must have a tutorial on for VR, and that's jumping! I'm trying to make a parkour game but you have no videos on how to add jumping and I kind of need this. Anyways this is a suggestion for a video because I am stuck with my game until I can add jumping. Thanks Valem for the awesome tutorials!

  • @duelsoldier3048
    @duelsoldier3048 3 роки тому

    Thanks for the great tutorial, it all works except when i let go on the seccond hand grab the gun still position is effected by the second hand controller. Any fixes please.

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

    Love you mannn

  • @TwilightKillerX
    @TwilightKillerX 3 роки тому

    I would love a comparison video between the current VR systems such as SteamVR, Unity XR Toolkit, VRTK and MRTK. Most examples online are dated a year or older, and with the ever-changing SDK I would love to hear a professional's opinion on the matter

  • @mydronetravellog6299
    @mydronetravellog6299 3 роки тому

    can you advise how this would work on OpenVR / steam VR, or do a seperate video on PAtreon as im planning to join in September. im having too many issues with XR to use it

  • @jackhassoup
    @jackhassoup 3 роки тому +1

    It would be really cool if you managed to make a grappling hook in vr

  • @chriswatts3697
    @chriswatts3697 3 роки тому

    Hey Valem, great tutorials Thx a lot, what about a tutorial for bow and arrow or slingshot maybe ?

  • @otterlyfoxed
    @otterlyfoxed 3 роки тому +17

    What about my 3rd hand?

  • @theGabe87
    @theGabe87 3 роки тому

    Thanks!

  • @tomtheturtle6850
    @tomtheturtle6850 3 роки тому

    This series has been great is it possible if you were to make a video Tutorial on VR with enemy AI

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

    Thanks for such a thorough tutorial on that! That was so much code that it seems maybe recommendable to simply make it from scratch, rather than using the XR interaction toolkit. With that toolkit being in such a “preview”/beta mode it seems a little naive to base too much on beta code.

  • @JasiekMoskal98
    @JasiekMoskal98 3 роки тому

    Amazing content, I am binge-watching all of your videos right now as I am creating a VR app for my diploma. I know this video isn't recent, but I'm really hoping for a reply :) Would you be willing to create a tutorial on developing a TiltBrush-like app for VR using these XR tools? Very basic - just one brush that you can draw with, maybe with a few colors to choose from + an eraser. Thank you so much for everything! Btw love your attitude in all of your videos, it makes them very pleasant to watch :)

  • @DavidGonzalez-oj1ic
    @DavidGonzalez-oj1ic 3 роки тому

    Man, if you had Patreon I would support you.

  • @GamerReality
    @GamerReality 3 роки тому

    What is the best version for VR development right now?

  • @andersontorres7145
    @andersontorres7145 3 роки тому

    A lifesaver

  • @kingsway.183
    @kingsway.183 3 роки тому +1

    Hey man I’ve watched your videos for a long time, could you please make a tutorial on vr enemies and allies. Or maybe a tutorial for moving cars or something that you can hop on and they move.

  • @mikechen467
    @mikechen467 3 роки тому

    Hi Valem, I also found out that with two hand grab interactable script on, the object cannot be grabbed back from the XR socket interactor. What might be the issue here. Thanks.

  • @ES-VIRAL
    @ES-VIRAL 3 роки тому

    Hello, GREAT CHANEL. My great problem is : how to build for others PC USERS ? How can I create the file ? Thanks

  • @reitax
    @reitax 3 роки тому +1

    If I try to initially grab an object's 2nd grab point, my scene crashes.
    It works if I grab the actual attach transform point and THEN grab the 2nd grab point, but not the other way around.
    Does anyone have an idea how to solve it?

  • @LiquidCurtain
    @LiquidCurtain 3 роки тому +1

    Has anyone else run into the problem of having multiple copies of the same gun prefab, but only having it work on some of them? I have it working right on a couple of guns, but for some guns it only works on some of the copies. For example, I can add 4 identical machine pistols and have it work on 2 or 3 of the 4, but never all of them.

  • @danio583
    @danio583 3 роки тому +2

    Salut Valem, super tutoriel (je progresse en anglais grace a toi😁).
    Je voulais juste savoir comment adapter ce tutoriel à un volant de voiture.
    Dans la vidéo, c'est l'arme qui s'approche de la main mais pour un volant de voiture, ça doit être la main qui s'accroche au volant.
    Voilà, si vous avez des pistes, je suis preneur...😊😊😊

  • @levifink
    @levifink 3 роки тому

    For some reason when I grab my first grab point the Ray Interactor is still displaying the dotted ray arc. All the other interactable objects I have added to my scene don't have the same issue and was wondering if anyone else had this problem.

  • @chowwill9828
    @chowwill9828 2 роки тому +1

    It's cool ! I've already subscribed to your Patreon. Can you add a short tutorial on how to grab a gun with fingers wrapped around it, like Pavlov VR, Onward...;use oculus XR toolkit.

  • @SpaceRex
    @SpaceRex 3 роки тому

    anybody have recommendations where to learn about quaternions?

  • @alialshah8466
    @alialshah8466 2 роки тому

    Hi thank you for the tutorial, but how do I 2 hand grab an object from any point,

  • @programacionartemar160
    @programacionartemar160 3 роки тому

    You are so awsome!
    Could you make a video about interacting with InputiFeld UI element?
    And also make a virtual keyboard please :D

  • @colsanders7571
    @colsanders7571 3 роки тому +1

    for some reason whenever I have the secondary grip near an XR socket interactor, it snaps there. any reason why?

  • @RazorianBuck
    @RazorianBuck 3 роки тому

    Can anyone help me. How do i write that code in this video
    " bool isalreadygrabbed = selectingInteractor && !interactor.Equals(selectingInteractor);
    return base.IsSelectableBy(interactor) && !isalreadygrabbed; "
    so that it doesn't include socket interactors? I have a place holder for my guns but now I can grab them out of the socket interactor.

  • @AbeH
    @AbeH 2 роки тому

    This series is so useful!

  • @kae3027
    @kae3027 3 роки тому

    I love your toutorials but i have a little problem. I want to make a movement in Space like "swimming" or using a jetpack but i dont know how to do that ;-; can you please help me?

  • @Break.
    @Break. 3 роки тому +1

    Can you do a VR keyboard tutorial?

  • @manjuyadav360
    @manjuyadav360 2 роки тому

    Hi Sir, please teach us how to grab the objects only if we use both hands in XR Interaction TK. Please it's my humble request.

  • @andreigtx1711
    @andreigtx1711 2 роки тому

    Any way to adapt this script for a ball?
    When I grab a ball with my other hand, it rotates the entire ball in the opposite direction.
    Maybe it has something to do with the position of the second hand grabpoint?

  • @alinagohar7331
    @alinagohar7331 2 роки тому

    How can we add different backgrounds in different levelss?

  • @A_C_007
    @A_C_007 3 роки тому +2

    Please do a tutorial covering haptics, like when you pull trigger on gun make it vibrate the correct controller. I figured out how to use XRController.SendHapticImpulse() but I'm having a hell of a time trying to figure out how to pass in the correct controller that is holding the grip with trigger, as of now I just assign which controller in the inspector but I want it to automatically assign the correct controller. No idea why something so basic has no documentation on Unity.

    • @A_C_007
      @A_C_007 3 роки тому +1

      I figured it out if anyone is interested, I used the InputHelpers.Button and InputHelpers.IsPressed to check if the trigger of left or right hand xrcontroller is pressed each time I pull the trigger while holding gun. Similar how he uses these helpers in the teleportation video.

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

    Boss, how to remove and reinsert the magazine ?

  • @PaoloCaminiti
    @PaoloCaminiti 3 роки тому

    great!

  • @KuIson
    @KuIson 2 роки тому

    Based on this guide, how can I make an offset for two hands?

  • @themirlabs
    @themirlabs 3 роки тому +1

    Please make a tutorial for selective inventory slots. When ever i walk too close to the cupboard door it snaps to the inventory snap point.

    • @themirlabs
      @themirlabs 3 роки тому +1

      PS these two hand grab point guns hate your inventory snap points

  • @mrslake7096
    @mrslake7096 3 роки тому

    Thx

  • @PadVirtualReality
    @PadVirtualReality 3 роки тому

    Thank U

  • @cameroncook6643
    @cameroncook6643 3 роки тому

    How to eat things in vr would be epic

  • @robertduffney3074
    @robertduffney3074 3 роки тому

    Can you please, please, please, do a UI specific/menu system?? I would love that!

  • @davidosorio1585
    @davidosorio1585 3 роки тому +1

    on: item.onSelectEntered.AddListener(OnSecondHandGrab);
    "XRBaseInteractable is obsolete... Use selectEntered"
    and if I write: item.selectEntered.AddListener(OnSecondHandGrab)
    Argument type 'void' is not assignable to parameter type 'UnityEngine.Events.UnityAction

  • @Mieze_TV_Click_Me
    @Mieze_TV_Click_Me 3 роки тому +3

    thx for that valem:)
    whats about the weapon rotation after releasing the secondHand? with my code the weapon stays in last rotation. i thought it would snap back to the normal position. is this intended with this code, or do i have something wrong here ? - and yeah woud love to see EnemyAI :)

    • @ValemVR
      @ValemVR  3 роки тому

      You can reset the rotation lile I did in the on select exit but do it in the second-hand release function so that it will also reset orientation when you release with second hand

    • @Mieze_TV_Click_Me
      @Mieze_TV_Click_Me 3 роки тому +1

      @@ValemVR i guess you ment adding "interactor.attachTransform.localRotation = attachInitialRotation;" into the OnSecondHandRelease() function. right? i thought of that, but it is not doing it. everything else is working properly though if someone can help with that, would be great.

    • @mattd882
      @mattd882 3 роки тому

      @@Mieze_TV_Click_Me Any luck with this?

    • @Mieze_TV_Click_Me
      @Mieze_TV_Click_Me 3 роки тому

      @@mattd882 no sorry. switched to other topics and did hope, someone would help here with that problem :)

    • @luciancomsa4381
      @luciancomsa4381 3 роки тому +1

      In the OnSecondHandRelease do this after setting secondInteractor to null: selectingInteractor.attachTransform.localRotation = attachInitialRotation; it will work

  • @kennl66
    @kennl66 3 роки тому

    Nice but how do I make bullets shoot multiple times when I hold the trigger like a real machine gun? Anyone know a code I can add to this that does that? thanks