Oculus Quest Development with Unity3d - How To Add Item Pickup Functionality in VR ?

In this Oculus Quest development video with Unity3d I show you how to add an Oculus Quest 3D model for the left and right controller. I also show you how to add components that will allow you pickup items from your scene by demonstrating how I did it in my scene with skulls, wood sticks, and rocks.
Download the asset shown in this video from:
assetstore.unity.com/packages...
** Support me by Subscribing to the channel as it will help me in bringing a lot more content **
bit.ly/2NmnFMu
** MY RECOMMENDED AR/VR HARDWARE AND ACCESSORIES **
- Oculus Quest All-in-one VR Gaming Headset - 64GB amzn.to/2MrmrzR
- Navitech Black Hard Carry Bag/Case/Cover with Shoulder Strap for VR & the Magic Leap One AR Glasses amzn.to/2MbOHpV
- Oculus Go Standalone Virtual Reality Headset - 64GB amzn.to/2W9i6FB
- Oculus Rift S PC-Powered VR Gaming Headset amzn.to/2EC4yrA
- PlayStation VR amzn.to/2wniktt
- Oculus Quest Travel Case amzn.to/2HH0us6
Support me in Patreon so I can keep doing stuff like this for free!
/ dilmerv
** EQUIPMENT USED TO RECORD THIS VIDEO **
- Photography Photo Portrait Studio 600W Day Light Umbrella - amzn.to/2WwI0Tc
- 1350W Photography Lighting Softbox Lighting Kit - amzn.to/2MgvV0r
- LimoStudio 6 x 9 ft. Green Muslin Backdrop with Ring Metal Holding Clips - amzn.to/30NofpT
- AmazonBasics 60-Inch Lightweight Tripod with Bag - amzn.to/2Wd8utF
- Canon EOS Rebel T6 Digital SLR Camera Kit - amzn.to/2WcnRlV
Get realtime indie development tips from me in Twitter
/ dilmerv
Subscribe to my indie development videos & game releases newsletter
www.dilmergames.com
Blog about Indie development and startup
www.dilmergames.com/blog

Пікірлер: 60

  • @drleslie7001
    @drleslie70014 жыл бұрын

    Hello Dilmer, repeating what most have been saying - YOU are beyond awesome. Your videos are clear and easy to understand, easy to follow. You get to the point and explain only what we really have to know without wasted space/time. I have watched many Unity learning videos, most are old, unclear and only "show" without explaining why. Thank you !

  • @dilmerv

    @dilmerv

    4 жыл бұрын

    Wow thank you so much and I am glad you find my videos helpful, I really love making videos and working on this so your words really inspire me to make a lot more videos :) thanks again !

  • @borakian
    @borakian5 жыл бұрын

    Thanks for the hard work. Subscribed on here and twitter. REALLY appreciate the Quest videos.

  • @dilmerv

    @dilmerv

    5 жыл бұрын

    Thanks Brian I appreciate your support and time by looking at my videos :) I have many more in progress !

  • @codebycandle
    @codebycandle4 жыл бұрын

    1. the "Dilmer drinking game" consists of taking a shot every time you hear "basically" 2. this oculus tutorial series has been very helpful, and certainly much appreciated, sir! : )

  • @dilmerv

    @dilmerv

    4 жыл бұрын

    hehe you really made me laugh today and honestly I am going to be drunk every single time I do a video then because it has been hard to get rid of that word ! Thanks for your comments :)

  • @Yearning.Astrophile
    @Yearning.Astrophile5 жыл бұрын

    Great , Please do video on how to interact controllers with Unity Canvas UI button,label,slider etc

  • @dilmerv

    @dilmerv

    5 жыл бұрын

    Thanks for watching and yes I have a video in progress exactly about what you are looking for :) thanks for the suggestion !

  • @manuelillanes1635
    @manuelillanes16354 жыл бұрын

    Please make a tutorial on how to snap position and rotation of objects correctly for both hands

  • @dilmerv

    @dilmerv

    4 жыл бұрын

    +ruddy illanes will do thanks for the suggestion !

  • @Chris-nc3xv
    @Chris-nc3xv4 жыл бұрын

    Really good tutorial - thanks! In terms of the SDK, do you recommend using the Oculus SDK over the Unity XR plugin/XR Interaction ToolKit (can see you're using the OVRCamerRig and not XR Rig here)? What's your recommendation on the best setup to use atm (2020)?

  • @dilmerv

    @dilmerv

    4 жыл бұрын

    It depends on your use case ;) I recommend both.

  • @jumpymonkey9
    @jumpymonkey94 жыл бұрын

    I'm really enjoying your Quest development videos. I've gone through a few of them already. I have a basic scene that I set up, and I was able to make the grabbable objects work as expected. However, if I bring the object close to my face, it's like the object pushes my character backwards, very quickly, and I end up falling off of the plane that I setup as my floor. Is there something happening that is causing a collision between the grabbed object and my character? I don't have any colliders on the OVRPlayerController, just on the Touch controller models as you described here. Thanks, and thank you for your videos, great help!

  • @dilmerv

    @dilmerv

    4 жыл бұрын

    I noticed the same issue, try to updating to version 12 which was released few days ago, I will try the same thing to see if it fixes the problem. Thanks for your time !

  • @Immersivelyco
    @Immersivelyco4 жыл бұрын

    Thanks so much for all your videos @Dilmer! Could I please ask: do you have any advice how we can migrate a Unity VR project that was done with VRTK (initially for the Vive) to OVR (for Oculus Quest)?

  • @dilmerv

    @dilmerv

    4 жыл бұрын

    I haven’t done much development with VRTK but it really depends on the features you have, look at the specific features and begin one by one, I have a variety of videos in the oculus playlist showing different areas maybe that can help. Best !

  • @Immersivelyco

    @Immersivelyco

    4 жыл бұрын

    Thanks@@dilmerv !

  • @dilmerv

    @dilmerv

    4 жыл бұрын

    Immersively.co you are very welcome !

  • @T.D.P
    @T.D.P3 жыл бұрын

    Why did you use the OVRControllerPrefab in the last video added under the Controller Anchors in Hierarchy and in this video only the Controller models under The Hand Anchor

  • @oldslann
    @oldslann4 жыл бұрын

    Is there a way to grab when pressing the trigger button instead? thank for the video

  • @dilmerv

    @dilmerv

    4 жыл бұрын

    I am sure let me do some research and thanks for the comment !

  • @beeftheslice
    @beeftheslice4 жыл бұрын

    Hey, I could grab the object from far away. Any help?

  • @gmgouws
    @gmgouws5 жыл бұрын

    Hi... Great video, which version of Unity is this?, im currently using the personal version and its missing a lot of assests... Even after adding Oculus Utilities packages, some assests dont appear

  • @dilmerv

    @dilmerv

    5 жыл бұрын

    GM thanks for your kind message and I am using the latest version available today which is 2019.2 and the latest Oculus asset available in the asset store. Also make sure to say yes to upgrade every component that Oculus prompts you to upgrade right after downloading the asset in Unity.

  • @gmgouws

    @gmgouws

    5 жыл бұрын

    @@dilmerv Cool, thanks Dilmer... I'l try that approach

  • @Verloxe
    @Verloxe4 жыл бұрын

    I made a scene for my quest in unity but it doesn’t run very good on the quest. Maybe because it’s too graphically demanding. Does yours run good because it’s all low poly assets?

  • @dilmerv

    @dilmerv

    4 жыл бұрын

    You have to lower the quality settings, tweak lights, shadows, etc, I had to do so to make sure it ran ok in my quest, I am actually going to make a video about it and you can try what I do :)

  • @aashutoshdabhade4325
    @aashutoshdabhade43254 жыл бұрын

    Nice Video.thanks.How to teleport using quest?

  • @dilmerv

    @dilmerv

    4 жыл бұрын

    Thanks for your comment and I have a video in progress about this :)

  • @aashutoshdabhade4325

    @aashutoshdabhade4325

    4 жыл бұрын

    @@dilmerv ok.. great.now i can stop scratching my head now!

  • @Noah-xh4vr
    @Noah-xh4vr4 жыл бұрын

    I know this video is a little old, but how do you get the grabbables and the environment things? Do you need them?

  • @dilmerv

    @dilmerv

    4 жыл бұрын

    Do you mean how do you grab items in the environment ?

  • @Noah-xh4vr

    @Noah-xh4vr

    4 жыл бұрын

    ​@@dilmerv Thank you for replying! I was wondering about the actual folders under the hierarchy button, but I think I realized I don't need those; however, you predicted what I needed, because I don't know how to pick stuff up. Do you use the trigger? Because the trigger isn't working for me. Thanks again!

  • @hclvuforia9811
    @hclvuforia98114 жыл бұрын

    Applying same steps on unity version 2019.2.12f1. Hand grabbing not working..any hint what may have gone wrong ?

  • @dilmerv

    @dilmerv

    4 жыл бұрын

    Take a look at my Oculus demos in GitHub and they can help as a reference github.com/dilmerv

  • @StrangeLake
    @StrangeLake5 жыл бұрын

    Hey! This is a great video with very clear explanation on what to do. I've tried replicating it in a scene I'm making, but weird things happen when I grab my object (consisting of 3 different objects, 2 of which are a child of the one you grab). Grabbing it makes the player move at high speed. This is of course not supposed to happen. Do you have any idea on how to fix this?

  • @dilmerv

    @dilmerv

    5 жыл бұрын

    I did notice some instances where picking up items caused the character controller to run in reverse which was really strange, I will look into it and see if I can find out why. Thanks for the feedback !

  • @StrangeLake

    @StrangeLake

    5 жыл бұрын

    @@dilmerv Awesome! Please let me know when you find something

  • @borakian

    @borakian

    5 жыл бұрын

    Smash Farm I’m having the same issue. When I move the controllers away from my body the reverse motion stops. But when I move then closer to my body the reversing starts again. Has this issue been resolved?

  • @StrangeLake

    @StrangeLake

    4 жыл бұрын

    @@borakian unfortunately, so far it hasn't. I did realise that the issue is indeed caused by the hitbox of the object you grab coming into contact with the hitbox of your body. Since im on holiday now, so I haven't had the chance to attempt a fix. I'll let you know if I find anything

  • @borakian

    @borakian

    4 жыл бұрын

    Smash Farm I think the fix is move items to different layers

  • @NewInfinityRecursion
    @NewInfinityRecursion4 жыл бұрын

    Where can you sell VR apps / games if they are made for quest or quest link ?

  • @dilmerv

    @dilmerv

    4 жыл бұрын

    There is a lot of information about this at developer.oculus.com/develop/

  • @yoinkedyoink1723
    @yoinkedyoink17234 жыл бұрын

    I have a problem where when I pick up my object it just snaps in a random position and when I let go it bounces up

  • @dilmerv

    @dilmerv

    4 жыл бұрын

    I would say try to do a comparison with my repo in GitHub github.com/dilmerv/UnityOculusQuestEssentials and see which areas may not be setup correctly.

  • @TERA3515
    @TERA35154 жыл бұрын

    I’ve done exactly everything you’ve done except mine doesn’t pick up objects

  • @dilmerv

    @dilmerv

    4 жыл бұрын

    Have you try pulling my GitHub repository and looking at it ?

  • @TERA3515

    @TERA3515

    4 жыл бұрын

    No have you got a link to it ?

  • @dilmerv

    @dilmerv

    4 жыл бұрын

    TERA3515 I just realized the video I did was on a project where I didn’t post the source code, let me do a new video and include a step by step functionality and code for grabbing with examples, expect it this week :)

  • @TERA3515

    @TERA3515

    4 жыл бұрын

    So is there a part of what I followed you doing that I’m missing ? Thank you I’ll wait for the video

  • @TERA3515

    @TERA3515

    4 жыл бұрын

    Because I did my box colliders child’s and then going up the sctructure I put on rigid body and box collider and OVR grabber My objects are grabbable just don’t know why it’s not working

  • @jboy402
    @jboy4024 жыл бұрын

    the moment i try to grab an object my character gets thrown back 1000 mph, watched so many tutorials i cant get anything to work in unity

  • @ShaggyGray-gc2wd

    @ShaggyGray-gc2wd

    4 жыл бұрын

    Hey! I hope it's not too late, but I figured it was the collider of the object reacting with the collider of the player. This causes the player to shift away from the object, but since the player is holding it, the object keeps pushing it away. The best fix is probably a collider restricter that ignores the collision of the players collider.

  • @danielchung7067

    @danielchung7067

    4 жыл бұрын

    another option is to move the OVRPlayer into a separate layer from the grabbable objects, then separate the layers from interacting with each other through the physics settings.

  • @DanielLopez-jz4yj

    @DanielLopez-jz4yj

    4 жыл бұрын

    To me, that sounds like a feature..

  • @JordanCassady

    @JordanCassady

    3 жыл бұрын

    I also had this exact same issue. I don't know exactly what I did wrong when following Dilmer's tutorial, but I probably made a mistake somewhere. However, I fixed the problem by following ShipBit's "How To Add Object Grabbing for Oculus Quest in Unity" tutorial from summer 2019. This KZreadr sets up the relationship between the various OVRPlayerController objects differently, and throws in some other helpful tips along the way.