Introduction to VR in Unity - PART 6 : RAY INTERACTION

preview_player
Показать описание
One of the main limitation in VR is interaction with fareaway objects. In this video, I will show you how to overcome this problem with a Ray. We will learn how to distance grab with a ray, interact with User Interface and trigger any behavior. Welcome back to the part 6 of this tutorial serie that will teach you the basics of VR development in Unity.



····················································································

📝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

Hexabody (Physics VR Player)

Mirror and Reflection for VR

Auto Hand (automatic hand grab pose)

Hurricane VR (vr physics interaction)

3d Hand Model for VR

····················································································

····················································································

If you want to learn VR dev, here are some other really good channel you should appreciate :

⌨️ Game Dev

👨‍🎓 Vr Dev

····················································································

#vr #vrdev #madewithunity #valem #unity
Рекомендации по теме
Комментарии
Автор

You are a god send to this world. I would love a video of how to interact with anchored objects (opening doors, pulling out shelves, pushing buttons, etc.).

lukenowlandfilms
Автор

Hi lovely people, hope you will enjoy the tutorial! So my upload schedule has been a bit chaotic lately. So starting next week, expect to see one video every SUNDAY !
Love you guys and see you soon <3

ValemVR
Автор

13:12 saved my neck. My boss was gonna kill me. I tried to solve this for 2 days. Thank you very much. God bless you sir.

halojames
Автор

The issue at 6:30, During part 2 I had a challenge while following along with your method and I somehow decided to just use the hand pregfabs as a children as you have now done. Seeing what you have now resorted to makes me feel more confident. Thanks.

andrewkibor
Автор

Can’t believe I started to learn VR just as you’re making this series 🙏🏻

alexmartos
Автор

If you use the newest version of XR interaction toolkit that code is obsolete and don't work anymore. You need to use "out" instead of "ref".

samulisaarinen
Автор

Just some useful information. The thing about disabling the hands when directly grabbing something is already an option within the OpenXR system for the Direct Interactor script. Just click on the toggle for Hide Controller on Select. You will find this between the Select Action Trigger dropdown menu and Starting Selected Interactable selection window in the Direct Interactor script.

huniken
Автор

if you actívate the teletransport with the primary button you dont need to bool the events for disable the teleport when you grab objects. Well, that Works for me. When I press A button or X I use the teletransport, that makes me able to teleport grabbing objects.

MikeMagnonimo
Автор

Dear Valem, thank you for creating these tutorials. It is super exciting to develop an own VR environment. =)

blissofkundalini
Автор

I had issue. When I used Ray Interactor to grab object i can grab another when i aim on another. To Fix look at 1:25, Ray Interactors have default "Selected Action Trigger" set on "State Change" but on XR Interaction Toolkit 0.10.0-preview.7 default is "State". Just change it.

I have another issue in Locomotion Controller, TeleportRays in Update are set up true when:
1) curved line (Teleport Tay) hit UI
2) straight line (Ray Interactors) don't hit UI
There is easy way to fix that?

Zexorii
Автор

Thank you so much for your tutorials. I've been following the Unity official lessons but they weren't all that obvious and your tutorial is leaps and bounds better.

yanbungl
Автор

Very clean and to the point. Thank you!

haeriarman
Автор

If I may ask a question? when using the interaction ray to pick up objects, I often pick up more than one object at a time, this is due to the ray continuing to exist past the grabbing mechanic, it also happens if I try and shot the gun at an object that is within range of the grab ray, is there a way to fix this, or does this get fixed in a later tutorial?

LordSindoreShadowind
Автор

I so enjoy your tutorials, thank you so much! Besides wanting to create a game, I have a second goal now: become you patrion as soon as I can afford it, which I want to by making great VR experiences happening haha :)

One question on this tutorial:
With the ray interactor, I can now grab multiple objects... Am I the only one? Have I missed something in you great tuts?

RayAllenTaylor
Автор

Been waiting for it! Thank you ♥️ I would like to see a climbing system and two hand grab that works with this vr rig setup.

rjerezc
Автор

Excellent channel, keep up the good work

ivantomasevski
Автор

another amazing tut. Thanks so much man. Worked out perfectly.

playfair
Автор

These tutorials are a godsend. Well worth the patreon sub.

WadeHenricksen
Автор

These really are sensational I struggled with some of the early ones, getting my oculus quest working properly. Perhaps where I had tried other tutorials with finger tracking. I will start fresh and try to follow your tutorials from start to finish!

AndyCarr
Автор

Loving the tutorials, it has helped me so much so far. Would love for you to do a video on scoring systems including an XR canvas where you displays the score in the hud. Hopefully that makes sense. Would love to see multiple scoring systems. For instance, shooting models, throwing a ball through a hoop, object hitting a trigger box.

JoesZone