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)
    ------------------------------

КОМЕНТАРІ • 42

  • @ValemTutorials
    @ValemTutorials Рік тому +13

    This is quality tutorial !

    • @FistFullofShrimp
      @FistFullofShrimp  Рік тому +4

      You've just made my night! You're the king of VR tutorials and this means a lot. Cheers!!!

    • @MrEpic99able
      @MrEpic99able 2 місяці тому +1

      big fan

  • @kiritoasunayuiaincrad9440
    @kiritoasunayuiaincrad9440 Рік тому +8

    Highly underrated tutorial. Helped me a lot with a project I got going. Thank you.

    • @FistFullofShrimp
      @FistFullofShrimp  Рік тому +1

      Super happy to hear it helped and I appreciate the kind words! 🍤

    • @boomikak2714
      @boomikak2714 Рік тому

      is that working when you tried the android build forr vr?

  • @siobhanpoulter455
    @siobhanpoulter455 6 місяців тому

    Great video and explanation thanks so much

  • @A93A93
    @A93A93 Рік тому +1

    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

    • @FistFullofShrimp
      @FistFullofShrimp  Рік тому +1

      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!!!

    • @boomikak2714
      @boomikak2714 Рік тому

      is that working when you tried the android build forr vr?

  • @PrzemekPol
    @PrzemekPol Рік тому +2

    Very nice, thanks a lot!

  • @Account95555
    @Account95555 13 днів тому

    Just what I needed for punching in VR, thanks! (2022.3.21)

  • @Regnet35
    @Regnet35 5 місяців тому +1

    Amazing tutorial. Was looking forever how to get this data. Thanks!

    • @FistFullofShrimp
      @FistFullofShrimp  5 місяців тому +1

      Glad I could help! I hope you're using this data for something amazing!

  • @afaqnisar9437
    @afaqnisar9437 Рік тому +1

    That's so Cool Thanks

  • @1979zeesh
    @1979zeesh 9 місяців тому

    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?

  • @michellegabrielle2026
    @michellegabrielle2026 Рік тому +1

    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

  • @noamanmazhar5879
    @noamanmazhar5879 Рік тому +1

    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.

  • @dangerClose-ij4fj
    @dangerClose-ij4fj 4 місяці тому +1

    Hey Bro can you tell me how can we get controllers and device battery?

  • @DrunkAncestor
    @DrunkAncestor 3 місяці тому

    This is great, but how does this work with the new Action based system?

  • @bigbyrd7755
    @bigbyrd7755 Рік тому +2

    If I could put this video on a dakimakura and sleep with it I would

    • @FistFullofShrimp
      @FistFullofShrimp  Рік тому +1

      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.

  • @jorjantoniy1758
    @jorjantoniy1758 Рік тому

    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?

  • @FreeSki4Life720
    @FreeSki4Life720 Рік тому +1

    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?

    • @qixotl
      @qixotl Рік тому +2

      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.

    • @FreeSki4Life720
      @FreeSki4Life720 Рік тому +2

      @Chris Payne I did figure this out eventually. I appreciate the response though! In the several places I asked, not a single person answered.

  • @boomikak2714
    @boomikak2714 Рік тому

    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?

  • @ringd-sw3ub
    @ringd-sw3ub 11 місяців тому

    Why i could not see anything at the XR interaction Debugger?

  • @FilletDev
    @FilletDev Рік тому +1

    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

    • @qixotl
      @qixotl Рік тому

      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.

  • @PentangleVR
    @PentangleVR 25 днів тому

    Can you provide a script on the controller buttons?

  • @quarantinedcorbin3744
    @quarantinedcorbin3744 10 місяців тому +1

    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.

  • @ringd-sw3ub
    @ringd-sw3ub 11 місяців тому

    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!

  • @mohammadatif8956
    @mohammadatif8956 6 місяців тому +1

    tujhe aik pappi idhar aik pappi udhar. Love you senpai. Tu toh hamza sohail se bhi acha nikla. bata kiya khaye ga. Choopa???

    • @FistFullofShrimp
      @FistFullofShrimp  6 місяців тому +1

      I'm not sure what to say here, so I'm going to say... Hell yeah brother! 🍤🍤🍤

    • @mohammadatif8956
      @mohammadatif8956 6 місяців тому +1

      I was just too happy i found your video.. Lots of love bro!!

  • @natzos6372
    @natzos6372 Рік тому +1

    why does my system say that the resources for this tutorial contain malware?

    • @FistFullofShrimp
      @FistFullofShrimp  Рік тому

      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. 🍤