UNITY XR INTERACTION TOOLKIT: DROPPED INTERACTABLE RESET!

Поділитися
Вставка
  • Опубліковано 27 жов 2024

КОМЕНТАРІ • 23

  • @me_in_vr8478
    @me_in_vr8478 3 роки тому +4

    Omg. I think this and the previous tutorial about socket interaction is about enough for me to make a utility belt.

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

    I love it! Thanks Daniel!

  • @markdziuban1433
    @markdziuban1433 3 роки тому +5

    Thanks so much for the script! I did have one issue that was an easy fix. If the object still had velocity and rotation when it returned to home, it would keep that velocity and rotation. I just added in a reference to the rigidbody and zeroed out the velocity before returning it. I also grabbed the original rotation and set the transform to that rotation prior to returning it to home. Just in case someone comes later and has the same issue.

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

      I also ran into that issue. Do you have an example of the code for that?

  • @2005jimmyguang
    @2005jimmyguang Рік тому +1

    Thanks a lot for the script!

  • @bones99999
    @bones99999 3 роки тому +2

    Love your work! So helpful.

  • @flashheart1676
    @flashheart1676 3 роки тому +2

    Oh No! ... I've hit the cube with my Sword!
    Oh well ... more code :)
    Great Turorial!

    • @UnityVR
      @UnityVR  3 роки тому

      I know right I did the same thing lol! and was like NOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO. But you could account for that in the code as you say :) so many things to think about lol

  • @sqwert654
    @sqwert654 3 роки тому +2

    Nice tutorials very useful to me. About to start my journey with VR in Unity. Have been using UE4 for a couple of years now but the latest builds are very bad for VR, so switching to Unity.

  • @dhabiaalmansoori6398
    @dhabiaalmansoori6398 2 роки тому +1

    thank u :>

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

    Any idea on how to force the player to release the GameObject when leaving the trigger area? I read about "XRGrabInteractable" and "ForceRelease()" or "ForceDeselect()" methods. Not sure if they actually work.

  • @_Garm_
    @_Garm_ 3 роки тому +2

    great tutorial/script :D

  • @darrinholroyd8203
    @darrinholroyd8203 3 роки тому

    Brill, question can this be used with a Raycaster, what I want todo is select 2 objects on a wall (have them turn a different colour) and have them swap places, would this be done on the returnhome method?

  • @konzeptzwei
    @konzeptzwei 2 роки тому

    hmmm for me it does not work at all. i get the follwing error: Assets\Scripts\Utilities\ResetObject.cs(36,31): error CS0246: The type or namespace name 'SelectEnteredEventArgs' could not be found (are you missing a using directive or an assembly reference?). i use unity 2020.3 and the xr toolkit 0.10.0-preview.7

    • @UnityVR
      @UnityVR  2 роки тому

      Hi, in the script with the error make sure you have the 'using UnityEngine.XR.interaction.toolkit'

    • @konzeptzwei
      @konzeptzwei 2 роки тому

      @@UnityVR sure mate. that is exactly the problem: i used the script from the google drive link and it HAS already thatline in the code but it still does not work.

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

      @@konzeptzwei this is a late reply, but have you installed the XR Interaction Toolkit using the Package manager in Unity?

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

      Look in my question above. The toolkit is installed but quite frankly I moved on to the hurricane VR toolkit as the unity xr toolkit and the (breaking) upgrade paths are laughable!

  • @betterlifeexe4378
    @betterlifeexe4378 3 роки тому +4

    WTF? I was just about to make my weapon items return to the players waist, and you make a purpose built tutorial for it! Get out of my head! (it's not good for your health to be in there)

    • @UnityVR
      @UnityVR  3 роки тому +1

      I'm everywhere :) - returning to the waist.. that sounds like a cool idea!

    • @me_in_vr8478
      @me_in_vr8478 3 роки тому +1

      Sounds like a great way to have inventory pinned to the player and not get lost when dropped. I’m planning similar implementation.

    • @betterlifeexe4378
      @betterlifeexe4378 3 роки тому +2

      @@me_in_vr8478 there actually just grabable handles, and when you grab them they turn into your last weapons, and then you can cycle through the weapons available for that arm with a click of a button.