Unity VR : How to get Controller Data
Вставка
- Опубліковано 14 лип 2024
- In this video I go over how to extract data from our VR controllers so we can use them in our games!
Resources For This Tutorial
downgit.github.io/#/home?url=...
Free Unity VR Template
github.com/Fist-Full-of-Shrim...
Written Tutorial Found Here!!!
fistfullofshrimp.com/unity-vr...
🍤Check Out My Patreon🍤
/ fistfullofshrimp
0:00 Intro
1:00 Project Review
1:22 XR Interaction Debugger
2:24 Accessing Our Input/Controller Devices
3:48 Using Data From Our Input Devices
5:37 How To Get Different Input Data
Music Credits
------------------------------
Floating by Smith The Mister Hey Yeah, by Smith The Mister
Smith The Mister Smith The Mister
Free Download / Stream: [No Copyright Music] Floating by Smith The Mister · Hip Hop & Rap + Calm
Music promoted by Audio Library Floating - Smith The Mister (No Copyright Music)
------------------------------
This is quality tutorial !
You've just made my night! You're the king of VR tutorials and this means a lot. Cheers!!!
big fan
Highly underrated tutorial. Helped me a lot with a project I got going. Thank you.
Super happy to hear it helped and I appreciate the kind words! 🍤
is that working when you tried the android build forr vr?
Great video and explanation thanks so much
So I have been perusing as many videos for vr game creation in unity as I can, and this is great stuff. I know it’s a niche subject, but I hope you do well sir, your content is quality
Always happy to hear when people enjoy content and its quality! Let's hope the VR/AR market continues to grow so it won't be so niche!!!
is that working when you tried the android build forr vr?
Very nice, thanks a lot!
Always happy to help! 🍤
Just what I needed for punching in VR, thanks! (2022.3.21)
Amazing tutorial. Was looking forever how to get this data. Thanks!
Glad I could help! I hope you're using this data for something amazing!
That's so Cool Thanks
Glad you found it useful!
one of the very few straight forward tutorials...awesome. i came here to see if there is anything to detect for buttons. like if i want t grab an object using any controller with click of button and move to other place in scene, how this event will be captured?
This helped a lot! Besides getting this data from the controllers, is there also a way to adjust it? I want to decrease controller velocity upon entering a specific area in the scene with my hand, but can't figure out how to adjust the velocity
Can I override the controller state? For example i want the grip button of my vr controller registered as “pressed” when I collide with one object.
Hey Bro can you tell me how can we get controllers and device battery?
This is great, but how does this work with the new Action based system?
If I could put this video on a dakimakura and sleep with it I would
This is single handedly the best compliment I have ever received. If I ever make a shop, I'll strongly consider shrimp dakimakuras in it.
Hi Bro! I really need your help, I want to make a sphere appear on the table when I touch the cube held by the index finger of my other hand, can you help me?
THANK YOU! Great tutorial! :D There's another method of using the new input system which did not work for me. This is the only thing that has. I'm running into an issue though...
I'm using the controller velocity to send out a spell projectile and it works great. Unless I rotate using the joystick/turn provider. Using the joystick to turn rotates the XR Origin and causes the velocities to no longer point the right direction. Any ideas here in chat?
You're getting the controller velocity in local XR space. You need to transform it by the XR rig's rotation to get it into world space.
@Chris Payne I did figure this out eventually. I appreciate the response though! In the several places I asked, not a single person answered.
it is working on play mode but when i tried the android build it is not working when i attached the inputdata script? how playmode and android build differs?
Why i could not see anything at the XR interaction Debugger?
5:38 this dont help. i want to get a button or trigger input but i still have to do this ,out thing after it and obviously vector 3 wont work because its a button press
Use a float for triggers or a bool for buttons instead. The autocomplete in Visual Studio show you the syntax for all the possible datatypes you can ask for.
Can you provide a script on the controller buttons?
Great tutorial so far, I'm only a minute or so in. I unfortunately have a large phobia of the word "Input devices", so I can only hope this does not get used ever.
I'm a beginner.When I open the project with unity hub I get the following problem.This project is not valid,why?Thank you!
tujhe aik pappi idhar aik pappi udhar. Love you senpai. Tu toh hamza sohail se bhi acha nikla. bata kiya khaye ga. Choopa???
I'm not sure what to say here, so I'm going to say... Hell yeah brother! 🍤🍤🍤
I was just too happy i found your video.. Lots of love bro!!
why does my system say that the resources for this tutorial contain malware?
It looks like Chrome or Microsoft doesn't like my use of downgit anymore. I'll change the link to a github repo when I get home, which will hopefully get rid of the spooky message. 🍤