How to Grab Objects and Two Handed Grab in VR - Intermediate Unity VR Tutorial

preview_player
Показать описание
When you're in VR, you pick up a gun or object and it feels so clunky because your hand reacts only if it's on top of something, but then gravity pulls at it. Gosh, I hate getting hung up by physics, right?! Well, not any more friends...

Hey guys! In this video, you'll learn how to pick up objects using physics. The cool part is that this script we'll write also allows for built-in two-handed grabbing! Try it out and let me know what you think in the comments below 👇

⌚ Timestamps
0:00 Like the video!
1:17 Setup
3:47 Update the Existing Code
5:43 Add Variables
8:27 Add to the Start Method
9:20 Add New Grab Method
12:56 Add New GrabObject Method
20:00 Add New Release Method
21:35 Testing & Debugging
26:08 Subscribe!
Рекомендации по теме
Комментарии
Автор

This guy is great, all of his tutorials are compatible with the old and new stuff, the reason I found this guy is because I was looking for someone who wouldn’t have complicated ways of doing things when it comes to vr

featherless
Автор

Always great insights! Nice attention to detail too, making sure the face cam was not obscuring anything important...definitely my first go-to whenever looking for VR dev content!

ProdigiaGames
Автор

Can't wait for the next part in this series! They've been super helpful

skyreep
Автор

Hey Justin, awesome video! It would be cool if you made a video about controlling a miniature environment with these hands. So pan and zoom around a miniature environment with objects in them. Something like the curious tale of the stolen pets. Keep up the work!

tjeub
Автор

Can you make a tutorial with this hand script on how to add climbing

Linkatrazz
Автор

I’m super excited to do this tutorial, I’ve been making an FPS game with the interaction toolkits default grabbing and I tried to follow a valem tutorial for the two hand grab, but it was already outdated and didn’t work. This seems way way better

immortalhamster
Автор

Thank you so much! Looking forward to the next one!

jonathanhobson
Автор

Hey Justin great video! I have i quick question tho, for some reason my console is giving me an error saying : The type or namespace name 'InputAction' could not be found (are you missing a directive or assembly reference?). Do you have any suggestions on how to fix this?

kje
Автор

Im a little late but still hyped for some quality grabbing content

Xzarations
Автор

Well. that when well!! only 24 errors, it's going to be a long night. lol!

livingagoodlife
Автор

Hello, i've been following your videos for a school project and they've been really helpful ! Do you plan on doing the procedural grip anytime soon ? Thanks a lot !

Malekdu
Автор

Thanks for all your helpful tutorials! Just subscribed to you on Patreon :)

michaelemerson
Автор

First of all, thank you so much for this content. I am looking forward to your dev log on the new game.

I have a project where I am not using the XR Interactions Toolkit, only XR Plugin Management with a camera converted to an XR Rig. I have a very simple hand setup and, when the player touches a particular sphere in the scene, I am trying to make the hand move across the surface of the sphere. However, I am having a lot of difficulty with this. For the most part, it is because the primitive that I am using for the hand moves through the sphere, or conversely, when I do get any physics working, the primitive for the hand seems to spin away from the sphere and fall into an odd state. Would you have any tips for starting on something like this? For example, what would your basic settings for the colliders be in this case? Or do you think I should prevent the movement of the hand within the boundary of the sphere via code?

darrencook
Автор

Bro please teach us the procedural grip I really need it for my project and I can't find any source except for the ones that sell that and it can be hard for someone like me to buy them I love your content btw 😊

Z-AXIS_Dev
Автор

Thank you very much for your excellent education
I wanted it to be red when we hold the cube with the right hand and blue when we hold the same cube with the left hand.
How should I do?

Neurovin
Автор

Have you ever thought about making videos on how to make a specific vr game like a fps or a walkabout world ect, i think it might help people really grasp vr development and i think you would be really good at it!

lint_animations
Автор

Thank you so much! You are awesome. Also if I need to fold the hand when i pick something up, what way do you suggest that i use??

HaniSharif
Автор

Hey justin, love your videos, really well done. I am working on a game at the moment and I would love a tutorial to create zero gravity similar to echo vr. Using push and pull to move the player around space while floating. cheers for your content, keep it up!

benferguson
Автор

After watching one of your other videos I purchased Auto Hands. Could that be used instead of the method here?

qualar
Автор

Did a continuation of this video come out?

wtpro
visit shbcf.ru