No video

How to make a door in VR - Unity tutorial

  Рет қаралды 67,132

Valem

Valem

Күн бұрын

Пікірлер: 119
@GamerReality
@GamerReality 5 жыл бұрын
Thank you for another helpful tutorial! If it isn't too hard, I would love to see a tutorial on getting physics based interactions in VR like boneworks.
@neddo1598
@neddo1598 4 жыл бұрын
Gamer Reality the boneworks engine was designed from the ground up by the team, so it would be very hard. However if you have knowledge with programming physics you could try that, there could be a realistic physics thing in the assest store or a tutorial for it.
@Johnny-wn4dl
@Johnny-wn4dl 4 жыл бұрын
@@neddo1598 no it wasn't lmao, it uses unity
@neddo1598
@neddo1598 4 жыл бұрын
Johnny VRer the physics engine is custom, but other than physics, yes it uses unity
@blaccy5991
@blaccy5991 4 жыл бұрын
@@neddo1598 no it uses NVidia PhysX.... The lead devoloper litterally said it
@user-ri7rh7ui2v
@user-ri7rh7ui2v Жыл бұрын
@@neddo1598 why do you pretend like you know stuff when you actually don't know s***?
@wizuud4821
@wizuud4821 3 жыл бұрын
Here is a fix for the new XR Interaction Toolkit I made! using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.XR.Interaction.Toolkit; public class handleGrab : XRGrabInteractable { public Transform handler; public Rigidbody rb; public void EndGrab() { rb.velocity = Vector3.zero; rb.angularVelocity = Vector3.zero; transform.position = handler.transform.position; transform.rotation = handler.transform.rotation; } } Then Inside the script New XRGrab Interactable go under 'OnSelectExited' and slot in the 'EndGrabFunction'.
@mateofloyd5263
@mateofloyd5263 2 жыл бұрын
YOU ROCK!!!!!!!!!!!
@hasannagaria1395
@hasannagaria1395 5 жыл бұрын
I just want to say thank you. I am new to VR dev and with this little methodology you just gave me the ability to do so much more then open doors! Your videos have been abundantly helpful!
@orioncloud1772
@orioncloud1772 2 жыл бұрын
I'm using oculus integration in unity 2021.3.2f1 now. And It works very well. Thank you so much for your effort.
@buddster124
@buddster124 5 жыл бұрын
Love the video, Could you do a video make a video on climbing?
@AlexLeggo
@AlexLeggo 5 жыл бұрын
+1 yes, Climbing!
@playerzklubvrstudios4077
@playerzklubvrstudios4077 5 жыл бұрын
Yes, on both SteamVR and Quest :-)
@jonathanlovholm5132
@jonathanlovholm5132 5 жыл бұрын
Would love that!
@denimdinofan9
@denimdinofan9 4 жыл бұрын
this would be useful
@konzeptzwei
@konzeptzwei 4 жыл бұрын
this.
@TsetTsyung
@TsetTsyung 5 жыл бұрын
What game had that "magnetic hand" that you showed at the beginning? I had THE EXACT same idea to use Inverse Kinematic character body with VR. Oh well... at least I now know I'm not quite as stupid as I once thought, lol. Thanks so much for another informative video. Keep them coming.
@ValemVR
@ValemVR 5 жыл бұрын
Thanks Michael, its from Enrique Tromp, I am not sure the game is annouced yet but yere is the original tweet with more information. twitter.com/entromp/status/1149699790277623809?s=09
@justsports9677
@justsports9677 5 жыл бұрын
Great tutorial, can this scene be extended to have custom hand mesh grabbing the handle and the real hand turning "ghost like"?
@PixelWitch
@PixelWitch 4 жыл бұрын
Thank you, I would have taken a million years to bumble through figuring out all these solutions on my own.
@cakeservant
@cakeservant 2 жыл бұрын
Awesome Tutorial! Taught me a lot of new Mechanics. I never used Hinges or Joints before... so thanks!
@heliorabadantoro105
@heliorabadantoro105 4 жыл бұрын
All said Valem thank you very much, im looking foor VR tutorials all over the internet, and your tutorials are the best, keep on like that man, thanks for helping everybody,is good that we help eachother¡¡
@haiminh643
@haiminh643 5 ай бұрын
Good Job Bro, I would like to want make a book which can interac with pages and I find your video which helps me very much. Book and Door are same
@ptinosq
@ptinosq 4 жыл бұрын
If your custom hands are in the floor and not moving, place CustomHandRight/Left under OVRPlayerController > OVRCameraRig > TrackingSpace> Right/LeftHandAnchor
@GeekyLuigi
@GeekyLuigi 2 жыл бұрын
Wish there was a simple way to combine this with the SteamVR SkeletonPoser to have the hand model "snap" to the door handle while you're pulling.
@KentHambrock
@KentHambrock 4 жыл бұрын
This explains the issues I was having so perfectly. Thank you so much for this.
@ndonkey
@ndonkey 5 жыл бұрын
Thanks s much for another really helpful tutorial. Cant wait to see what you do next :) Any chance we will see a gun holster/inventory system where you can connect items to your body as you move around?
@sirawesomeness7543
@sirawesomeness7543 3 жыл бұрын
Now you gotta make a tutorial on inverse kinematics using vr to show us how to snap to objects
@DNetworking
@DNetworking 4 жыл бұрын
This is a cool trick for dressers, doors, and so on. XD Thanks a lot for these tutorials
@devseb
@devseb 5 жыл бұрын
I love your videos. Thank you.
@jonathanlovholm5132
@jonathanlovholm5132 5 жыл бұрын
Youre awesome man, so helpful! Keep up the great work!
@JessicaSFranco
@JessicaSFranco 4 жыл бұрын
Hello Valem. Great Video. Have been learning a lot with you. I would love to know how you can move the hands in the unity play mode.
@THE_ONLY_GOD
@THE_ONLY_GOD 2 жыл бұрын
Thanks! Can do a tutorial on how to make the UltimateXR style (VRmada) arm extenders shown in that video?
@ianbebe2745
@ianbebe2745 4 жыл бұрын
You are the holy grail of vr tutourals Edit sorry bad grammer
@ThatGuy-qv1uu
@ThatGuy-qv1uu 5 жыл бұрын
This is really helpful. Great tutorial as always!
@xten9950
@xten9950 5 жыл бұрын
Love your tutorials
@rabiefathallah6485
@rabiefathallah6485 5 жыл бұрын
thank you for your effort
@asalongino3588
@asalongino3588 5 жыл бұрын
can you show us how to make two-handed guns? I cant figure out the math behind it
@Corysia
@Corysia 5 жыл бұрын
Thank you so much for doing this tutorial!
@gwenthetodeke
@gwenthetodeke Жыл бұрын
Some bits are outdated, unfortunately. Please, can you recreate this tutorial with the new OpenXR?
@bthadley5006
@bthadley5006 4 жыл бұрын
Can you do a tutorial on Buttons and Levers using the Oculus Integrated tools?
@elaboure
@elaboure Жыл бұрын
How would you make a foldable door (with the external pane being grabbable) ? Simply adding panes with hinge in between, or is it more complex with need to add scripts, etc. to have the various panes moving together ? And also.. comparing with your other video "Introduction to VR in Unity - PART 7 : DOOR, LEVER, DRAWER,...", this video looks more complex.. I could build simple grabbable doors without all the scripts and intermediate cubes of this video.. So what's the best way for making foldable doors ?
@ruhlmcu
@ruhlmcu 4 жыл бұрын
Valem, Thanks for the tutorial. Can you explain how objects that slide in and out (like a drawer) or twist (like a dial) might work? Are there joints involved or just a colliders to keep things aligned?
@Biestly122
@Biestly122 4 жыл бұрын
How does the "ForceRelease" work with the new XR Interactable Toolkit?
@TheAdventuresOfMontuMiah
@TheAdventuresOfMontuMiah 5 жыл бұрын
It's better and much easier to use Steam VR or VRTK. Much smoother and no extra code. Using unity's joints are a mess and probably a bad idea. NEWTON VR was the best solution but the developer discontinued that remarkable asset. Anyway use whatever you find comfortable. Nice video! Thanks Valem.
@Robber7
@Robber7 4 жыл бұрын
How does steamVR work on games that arent Steam games?
@hasannagaria1395
@hasannagaria1395 5 жыл бұрын
I would like to ask, is overriding the Oculus SDK something that I should be doing a lot? I.e for different behaviors and such? For example if I am looking to do things like nested grabs or two handed grab or play certain animations?
@pixelb0i255
@pixelb0i255 5 жыл бұрын
Always on point!!
@teemuleppa3347
@teemuleppa3347 4 жыл бұрын
Hi, awesome content ! Could you also make a tutorial about how to add realistic touch to characters...ie. let's say you have a 3d model of npc and when touching it the mdoel would realistically interact... eg. dents in the skin etc.... sorry my english is bad but im sure you know what i mean :)
@SlamDunkYaJunk
@SlamDunkYaJunk 4 жыл бұрын
It wont let me put a rigidbody in the ConnectedBody slot of both the HingeJoint and the FixedJoint????? Am I missing something?
@NeroForte_
@NeroForte_ 9 ай бұрын
Hello, Valem. The issue now is We move through the walls and the door. how can we avoud that. i tried coliders and rigid body on walls and ground, but no luck
@heliorabadantoro105
@heliorabadantoro105 4 жыл бұрын
Hello again¡¡ i did it, but i dont know if it is correct, what i made is to put the distance Grabber hands in the scene with vissible Skinned mesh renderer, and put also aswell the CustomHands but with the Skinned mesh renderer off, and right now it works perfectly well is it a good solution?
@thomasbodin9029
@thomasbodin9029 5 жыл бұрын
Énormément de choses intéressantes dans cette vidéo ! Merci !
@ValemVR
@ValemVR 5 жыл бұрын
Merci pour le feedback Thomas ça fait plaisir ! :)
@trendking1817
@trendking1817 5 жыл бұрын
Like so he can make series about making horror games in VR!
@Sueko2009
@Sueko2009 4 жыл бұрын
Your tutorials are awesome!! Do you have already one where i need to turn down the handle to be able then to open the door, and then if the door closes it resets making again the need to turn the handle.
@ahmedteeka
@ahmedteeka 4 жыл бұрын
amazing Many thanks
@sskenth
@sskenth 5 жыл бұрын
Fantastic!
@tom_hd7157
@tom_hd7157 5 жыл бұрын
Can you create a Tutorial, On How to Create a VR Boxing Game?
@nerfingdino5628
@nerfingdino5628 5 жыл бұрын
These videos are super helpful, but I was wondering, are you going to continue your How to make a VR game tutorials
@ValemVR
@ValemVR 5 жыл бұрын
I will continue the serie but without building it upon the same project like I did so more people can understand the context and the development of the tutorial ! :)
@nerfingdino5628
@nerfingdino5628 5 жыл бұрын
Valem Ok
@SibrisLarenz
@SibrisLarenz 4 жыл бұрын
QUESTION! - Say you have a flight craft cockpit, and have a steering wheel of sorts for control of your craft, what should I use instead of the hinge joint? I've ran into an issue where the angle limits wont work on the HingeJoint if the rigid body is kinematic, and if its not kinematic, the object will not transform along with the parent object. Suggestions to alternatives short of programming my own joint? - Thx
@erdemhilmi
@erdemhilmi 3 жыл бұрын
I love the video, but there is little problem. Public OVRgrabable doesn't have HTC Vive either. I don't know which class to use. Somebody help me please
@eshapatil9858
@eshapatil9858 5 ай бұрын
the door i made is spinning 360 degrees continuously, how do I solve it?
@liyahwembs3104
@liyahwembs3104 4 жыл бұрын
Question custom hands has Parent Transform and Player... what should I put for player
@herp_derpingson
@herp_derpingson 4 жыл бұрын
Steam VR supports it by default. You dont need to write your own scripts.
@ronan5946
@ronan5946 5 жыл бұрын
Amazing!
@tuannguyenquoc1170
@tuannguyenquoc1170 3 жыл бұрын
thanks you broo....
@jacobdavies3761
@jacobdavies3761 3 ай бұрын
T H A N K Y O U
@JRScreative
@JRScreative 3 жыл бұрын
Problems i'm dealing with: - Your way of setting up the player controller makes my movement glitchy ( When turning left or right i spin in a circel and phase trough walls...) - Can't grab objects... (gave a cube rigidbody and OVR Grabble script with "snap position" Enabled.) - When exporting my project to quest, and open the game. I have four hands instead two ( two hands wich are dark blue ish and two hands wich are the same mesh as those of the "custom hands" prefab... Please help me : ( Gotta finnish this project next week....
@lovesterposey5109
@lovesterposey5109 4 жыл бұрын
Hello, I'm trying to combine this video and the object grabbing video. I am trying to make a mini gun that requires two hands to aim and shoot. I've added hinge joints to the front and back, but when I grab it the physics is ignored. Also, I can only hold with one hand when I try with two it just switched hands. Any advice??
@GloryMeat
@GloryMeat 5 жыл бұрын
Can you do a tutorial on how to make a game for the oculus go plz?
@emilypolanco4014
@emilypolanco4014 5 жыл бұрын
When I apply the Door grabbable script, I can move my grabbable handler once but then it goes flying into space like Vector3.zero is not working. Any advice?
@krabesandwich
@krabesandwich 5 жыл бұрын
Hi, Great tutorial! I have made a cabinet door that opens and closes, but the door does not want to stay closed all the way. How I can I get it to stay closed without bouncing open a little. I have tried adjusting the damping on the hinge and the mass on the rigidbody and it seems to help a little. Any suggestions? Thanks!
@ValemVR
@ValemVR 5 жыл бұрын
Really good question! Hopefully there is an easy fix for this also, go to the hinge joint of the door and check the spring box, it will add a force that will automatically rotate the door towards the centee
@krabesandwich
@krabesandwich 5 жыл бұрын
Valem ok thanks!
@lukeyager5039
@lukeyager5039 5 жыл бұрын
Hey man, I love your videos and they've really gotten me into VR development. One problem I'm still having is that the quest won't let me use both hands(and the one that works is 3dof not 6). The fix you described previously in the comments no longer seems to work and I'm out of options as to what can fix it. Any help would be really appreciated!
@GertBrouwer
@GertBrouwer 5 жыл бұрын
Look here, it worked for me! www.reddit.com/r/oculus/comments/cj9x78/oculus_quest_development_on_unity_results_in_only/ Add the line of code in your unity version and in project you are working on.
@lukeyager5039
@lukeyager5039 5 жыл бұрын
@@GertBrouwer Thanks! I'll try it out
@TTLExperience
@TTLExperience 4 жыл бұрын
A full video about dOoR
@LilBigfootOverlanding
@LilBigfootOverlanding 5 жыл бұрын
Hey thanks a ton for this super helpful tutorial!! Do you know if they have a way of purchasing scripts like this?
@TheAdventuresOfMontuMiah
@TheAdventuresOfMontuMiah 5 жыл бұрын
Use Steam VR or VRTK. These are free. NEWTON VR was the best but doesn't work with new Unity and VR SDK's.
@LilBigfootOverlanding
@LilBigfootOverlanding 5 жыл бұрын
Ok hey thanks for the help! I’m a newbe to game dev but have done 3D stuff for years.. I think learning C# is gonna be my biggest hurdle😅 But with helpful channels like yours I’m sure I’ll figure it out eventually☺️👍 thanks again!
@heliorabadantoro105
@heliorabadantoro105 4 жыл бұрын
Hi¡¡ please is there any way to make it work with Distance Grab Hands? i've been trying to inegrate the distance grab hands,and i dont know how to make it work
@DNetworking
@DNetworking 4 жыл бұрын
I would suggest looking at his tutorial where he was setting up distance grabbing hands + creating some cubes to grab from a distance using said hands. Maybe you'll think of a way to do by watching it :o
@ahmadkabbani12345
@ahmadkabbani12345 5 жыл бұрын
Hello valem so everytime I install the oculus integration and I put its scene or use anything from it I get around 5 errors can you help
@RFixT_Swaps
@RFixT_Swaps 4 жыл бұрын
I had some problems(2 error) I have Visual studio 2019 I wrote: using System.Collections; using System.Collections.Generic; using UnityEngine; public class FollowPhysics : MonoBehaviour { public Transform target; Rigidbody rb; // Start is called before the first frame update void Start() { rb = GetComponent ; } // Update is called once per frame void Update() { rb.MovePosition(target.transform.position); } } What I do wrong?
@sylwestermoniuszko-szymans1488
@sylwestermoniuszko-szymans1488 4 жыл бұрын
Syntax error, it should be rb = GetComponent ();
@M4pster
@M4pster 3 жыл бұрын
Can you remake this using XRToolkit?
@nmaikowski8013
@nmaikowski8013 2 жыл бұрын
my door is launching me into the air
@zbyszggo4626
@zbyszggo4626 2 жыл бұрын
My doors are opening itself at start, someone can help?
@II3URNZ
@II3URNZ 4 жыл бұрын
my door gets destroyed by the kinematic cube LUL damn edit: nevermind i fixed it by using a smaller collider box :)
@soundsosound
@soundsosound 2 жыл бұрын
Thanks a lot. This was super helpful! Had to adopt this a bit to the new XR Interaction Toolkit. I just could not find out, how the last step can be realised, as there does not seem to be a ForceRelease method in the XR Grab Interactable class. But what even bothers me more is, that my character controller pushes the door - not when I use the thumbstick, but when I move my head into it. This even pushes the door out of its anchor. And sometimes my character controller is suddenly beamed up onto the door. Any idea, how this can happen? I use the XR Origin (action based) with a character controller component - no Rigidbody.
@mateofloyd5263
@mateofloyd5263 2 жыл бұрын
try to using Physics.IgnoreLayerCollision, so anytime you grab the door you will be ignoring the collision with this
@halabahahg5759
@halabahahg5759 3 жыл бұрын
why is the door disapearing
@chipwy9232
@chipwy9232 5 жыл бұрын
the controllers arent working for me there not showing up
@chipwy9232
@chipwy9232 5 жыл бұрын
It makes my game pause when i start it which is weird
@Mateooyt
@Mateooyt 3 жыл бұрын
0:01 what game is it?
@asterlofts1565
@asterlofts1565 4 жыл бұрын
And while ... Valve and its doors in virtual reality.
@gdheroes2802
@gdheroes2802 4 жыл бұрын
using System.Collections; using System.Collections.Generic; using UnityEngine; public class FollowPhysics : MonoBehaviour { public Transform target; Rigidbody rb; // Start is called before the first frame update void Start() { rb = GetComponent(); } // Update is called once per frame void FixedUpdate() { rb.MovePosition(target.transform.position):; } }
@anficyon
@anficyon 4 жыл бұрын
what changes needed for steamvr version of the tutorial?
@ValemVR
@ValemVR 4 жыл бұрын
Instead of using the OVRPlayerController from the Oculus package, use the Player prefab from SteamVR and add interactable and throwable on the dooor handle! :)
@MeanMachine995
@MeanMachine995 4 жыл бұрын
@@ValemVR Any chance you go more into detail on Resetting the black cube to the original position using SteamVR? Would be much appreciated! :)
@RedFlamevr-q5m
@RedFlamevr-q5m 8 ай бұрын
code plz
@crypted69
@crypted69 5 жыл бұрын
Does it work with Windows Mixed Reality?
@ValemVR
@ValemVR 5 жыл бұрын
You can do something similar with the steam vr which works with the wmr! :)
@crypted69
@crypted69 5 жыл бұрын
Wow that was a quick answer
@henryrobersonn
@henryrobersonn 4 жыл бұрын
my script keeps saying error ; expected
@gdheroes2802
@gdheroes2802 4 жыл бұрын
same
@gdheroes2802
@gdheroes2802 4 жыл бұрын
using System.Collections; using System.Collections.Generic; using UnityEngine; public class FollowPhysics : MonoBehaviour { public Transform target; Rigidbody rb; // Start is called before the first frame update void Start() { rb = GetComponent(); } // Update is called once per frame void FixedUpdate() { rb.MovePosition(target.transform.position); } } now the script should work ;)
@DNetworking
@DNetworking 4 жыл бұрын
@@gdheroes2802 Double check your code. Yous should know how to spot small errors
@Paulztackett
@Paulztackett 4 жыл бұрын
This script doesnt work for me, anyone have success??
@gdheroes2802
@gdheroes2802 4 жыл бұрын
same it's not working
@notc0mputing
@notc0mputing Жыл бұрын
@@DNetworking bro chill. we all start somewhere and discouraging people from continuing to learn is the last thing we wart to do
@cactusmanyt599
@cactusmanyt599 8 ай бұрын
Dont this work? public GameObject gameObject1; public GameObject gameObject2; public void voidName() { gameObject1.transform.position = gameObject2.transform.position; } then just use xr interactable events on select exited
@manuelillanes1635
@manuelillanes1635 4 жыл бұрын
My door works but it keeps opening alone. How can I fix this??
Oculus Custom Hand Pose - Unity Tutorial
12:25
Valem
Рет қаралды 30 М.
How To Prevent Cheating in Your VR Game!
23:57
Justin P Barnett
Рет қаралды 9 М.
拉了好大一坨#斗罗大陆#唐三小舞#小丑
00:11
超凡蜘蛛
Рет қаралды 16 МЛН
GTA 5 vs GTA San Andreas Doctors🥼🚑
00:57
Xzit Thamer
Рет қаралды 25 МЛН
Magic or …? 😱 reveal video on profile 🫢
00:14
Andrey Grechka
Рет қаралды 52 МЛН
6 Years of Learning Game Development
9:02
Codeer
Рет қаралды 2,4 МЛН
Smooth Scene Fade Transition in VR
23:19
Valem Tutorials
Рет қаралды 35 М.
How to Make a VR Keyboard in Unity - Poke and Ray Interaction
26:22
Valem Tutorials
Рет қаралды 20 М.
Creating Little Castles with Wave Function Collapse
5:27
Tom Hanssens
Рет қаралды 36 М.
What size should your assets be? | HD 2D GAME ART
12:10
Nonsensical 2D
Рет қаралды 123 М.
A Beginner's Guide to Making VR Buttons
14:44
Justin P Barnett
Рет қаралды 50 М.
How To Recenter in VR - Unity Tutorial
11:27
Valem Tutorials
Рет қаралды 13 М.
I Made an AI with just Redstone!
17:23
mattbatwings
Рет қаралды 1 МЛН
OPENING a DOOR in UNITY on TRIGGER EVENT
8:20
SpeedTutor
Рет қаралды 112 М.
拉了好大一坨#斗罗大陆#唐三小舞#小丑
00:11
超凡蜘蛛
Рет қаралды 16 МЛН