Haptic Feedback - Unity XR Toolkit Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 ก.ย. 2024

ความคิดเห็น • 41

  • @angeloadimauro
    @angeloadimauro 11 หลายเดือนก่อน

    Hey Valem! Just wanted to extend my gratitude to you for all of your tutorials. Learning from you helped me get started doing what I love and actually getting work in this field. And now when I run into obstacles like not being able to control haptic feedback when I want it for specific situations, I still find you doing tutorials like this that help me figure out solutions. Great work and thanks for documenting everything that you do :)

  • @Sija_Men
    @Sija_Men ปีที่แล้ว +5

    Im using Quest 2 and I done everything like in tutorial but don't have any vibrations on controller ;/

  • @calland36
    @calland36 ปีที่แล้ว +2

    Thank you for the videos! I spent about an hour debugging an issue I had that was a mistake on my part. Was close to posting a questing but finally solved it.
    My issue was that it was never going into the if statement to call the second TriggerHaptic function. I was checking for 'eventArgs.interactableObject' when I needed to check for 'eventArgs.interactorObject'. Double check that spelling everyone! :D

    • @BlackLoboGaming
      @BlackLoboGaming ปีที่แล้ว

      You just saved me! Thank you!

    • @lellob4885
      @lellob4885 4 หลายเดือนก่อน

      hail to the great savior🙏

  • @RigidDecay
    @RigidDecay 2 ปีที่แล้ว +6

    Will you be making a video on multiplayer? I tried some of the older ones and I can't seem to get them working with the new xr system.

  • @1d3ntidy62
    @1d3ntidy62 2 ปีที่แล้ว +6

    Hi valem I was wondering could you make a tutorial for a hand poser or grip poser when grabbing objects

    • @ValemTutorials
      @ValemTutorials  2 ปีที่แล้ว +5

      Stay tuned it might come very soon ! :D

    • @SwordOfShaolin
      @SwordOfShaolin 2 ปีที่แล้ว

      Awesome, been waiting for your post! Cheers!

    • @jovan_spasovic
      @jovan_spasovic 2 ปีที่แล้ว

      Was wondering the same as well. I do not want to remove hands when grabbing something. It does not always look good.

    • @RigidDecay
      @RigidDecay 2 ปีที่แล้ว

      that would be amazing

  • @jstra
    @jstra ปีที่แล้ว +6

    This isn't working for me at all. I get haptic feedback when I activate directly on the left or right-hand direct interactor but I've checked the code to the letter and even redid the whole tutorial but my quest 2 controllers are not vibrating at all from the Haptic Interactable script. Anyone have any suggestions?

    • @jstra
      @jstra ปีที่แล้ว +4

      Got it, just incase anyone has the same issue in the line:
      if (eventArgs.interactorObject is XRBaseControllerInteractor controllerInteractor)
      my autocomplete had changed event.Args.interactorObject to eventArgs.interactableObject. An awful lot of trouble for four incorrect characters!

    • @ChrisBurns3D
      @ChrisBurns3D ปีที่แล้ว

      @@jstra I had the same thing! wouldn't have spotted it if it weren't for your comment! cheers

    • @GSS-n4u
      @GSS-n4u 9 หลายเดือนก่อน

      Thank you so much.:D

  • @emirhanyilmaz9695
    @emirhanyilmaz9695 ปีที่แล้ว +3

    Hi valem ! Could you make a video about haptic events for UI ?

  • @myhelshik5844
    @myhelshik5844 ปีที่แล้ว

    Thank you for your videos!

  • @marcg9475
    @marcg9475 ปีที่แล้ว +1

    Great video as always! One question: I'm trying to implement Haptic Feedback on a sword depending on how fast you swing it but I'm having trouble programming what controller should vibrate (if any) depending on what hand I'm holding it with, how can I write in code that I'm holding an object with my left or right hand?

    • @KCYON
      @KCYON ปีที่แล้ว +1

      If you head back to his recent VR unity tutorials, i believe he has a section where theres something specific about left hands and right hands code. Also ChatGPT might be able to help :) gl.

  • @kristycham
    @kristycham ปีที่แล้ว +1

    Hello, may I ask which vs code extension for unity c# you used in this video? Thx :)

  • @SuperSkydrake
    @SuperSkydrake 2 ปีที่แล้ว +1

    Thanks for the tutorial, I cannot get more than 72 FPS with OpenXR with Meta Quest 2. Do you know any solution for this problem? The hardware supports 90 or even 120 FPS. Thanks

  • @DrunkAncestor
    @DrunkAncestor ปีที่แล้ว

    How do we use the Voice Coils on the Oculus to simulate more advanced haptics?

  • @PaulRobello
    @PaulRobello ปีที่แล้ว

    How would I get the controller from a Poke Interactor? It derives from BaseInteractor which is not really associated with a controller.

  • @Kingstantin
    @Kingstantin ปีที่แล้ว +1

    5:00 For some reason Unity doesn't like line 23: TriggerHaptic(controllerInteractor.xrController); CS1503: Argument 1: cannot convert from 'UnityEngine.XR.Interaction.Toolkit.XRBaseController' to 'UnityEngine.XR.Interaction.Toolkit.BaseInteractionEventArgs' ... any ideas what is wrong here?

    • @ssvper.
      @ssvper. ปีที่แล้ว +1

      same

    • @LyssFr
      @LyssFr 6 หลายเดือนก่อน

      might be the curly
      brackets?

  • @wmka
    @wmka 2 ปีที่แล้ว +1

    Would be useful for touch interaction with virtual pet

    • @pastuh
      @pastuh ปีที่แล้ว

      Yep, and intenisty could be changed based on distance or how long you touch object.

  • @CLOWNXCVI
    @CLOWNXCVI ปีที่แล้ว

    Would this work with dualsense? because I think unity doesn't have compatibility yet and I would like to make something that works with dualsense.

  • @aloestylez3434
    @aloestylez3434 2 ปีที่แล้ว

    great

  • @pastuh
    @pastuh ปีที่แล้ว

    04:50 simple, but explanation non existing :X
    This part obvious could be extended.. now need search what each line means.. :C

  • @SparkvfxstudiosOfficial
    @SparkvfxstudiosOfficial ปีที่แล้ว +1

    Hi Valem Thanks for this Amazing tutorial, I am having a big problem i am making a train simulator and as i attached the xr camera to the train, the train is moving so fast that my grab interactables are lagging and falling behind whenever i grab them kind of glitch or lag. Do you have any idea on this ?

    • @ValemVR
      @ValemVR ปีที่แล้ว +4

      This is a problem we see often in gamedev when doing quick movement. Instead its better if you like "fake" that the train is moving but is actually not. You can like animate the tree to move or like offset a texture to make it seems like we are moving without having to. This is better for optimization and interaction reason :)

    • @SparkvfxstudiosOfficial
      @SparkvfxstudiosOfficial ปีที่แล้ว +2

      @@ValemVR Thanks Valem, I will try ths.

  • @Sinbad1999
    @Sinbad1999 6 หลายเดือนก่อน

    For me, when i press the trigger, it doesn't work :(

    • @Lemon-dh4fz
      @Lemon-dh4fz 5 หลายเดือนก่อน

      see:
      How to Make Your Own VR Haptics for an Immersive Experience
      from Justin P Barnett

  • @braileveracruz
    @braileveracruz 2 ปีที่แล้ว

    Is there anyway to add in jumping in vr?

  • @DarylChris
    @DarylChris 9 หลายเดือนก่อน

    You have great tutorials, I only wish I understood them. You are always too fast and assume we already know a lot