A Steering Wheel for XR Toolkit

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ธ.ค. 2024

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

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

    Your use of visual gizmos to explain tricky concepts is unparalleled.

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

      Much appreciated, Aaron!

  • @TheARTofMining
    @TheARTofMining 3 หลายเดือนก่อน +1

    Hi thanks for this, it appears to use the RayInteractable, is it possible to use it with Direct Interactor?

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

    Thanks man. Straight to the point and useful.

  • @ludriposte
    @ludriposte 24 วันที่ผ่านมา

    Hello, thanks for this tutorial, it works brilliantly. Although I have not been able to get an angle to use it as a steering wheel, maybe I miss an obvious thing ?

  • @rabbitskillz9826
    @rabbitskillz9826 3 หลายเดือนก่อน

    agreed straight to the point and supper useful thank you

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

    What components are on your primitive shapes? Are they each XR grab interactables?

    • @VRwithAndrew
      @VRwithAndrew  4 หลายเดือนก่อน +1

      They're just primitives, the only interactable used is the Steering Wheel interactable itself.

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

    Thank you! Been looking for something like this.

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

      Hopefully you find it useful!

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

      @@VRwithAndrew I will! Bike handle-bars next? Please and thank you. Although I guess it's the same principle.

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

      @@Arashi256 Not exactly, but I have done something similar to handlebars that uses direction rather than rotation.

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

      @@VRwithAndrew Cool, I'd be well up for a tutorial on that 👍

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

    this method return a laggy wheel when grabbed, and return the position of the hand when grabbing not the actual rotating position of the wheel

  • @evelyconfused
    @evelyconfused 7 หลายเดือนก่อน

    This is soooo helpful, thank you so much!!

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

    nice wheel but implementing this onto a car with driving movements and all is pretty hard , mind making a video on it?

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

      Not at the moment, the real goal was just share this code with everyone.

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

    Line 73: I think you'd wanna use a "local up" instead of "transform.up", as the latter is world space and you're comparing it against a local vector - As it is, it'd start going wrong if your car went on slopes/upside down
    Also, you might want to flatten the vectors to remove the Z (or x or whatever) - As at the moment, I think it'll rotate even when you move your hand towards/away from yourself.

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

      You're onto something! I originally had it with Vector3.up, but I considered the possibility of the car rolling over, so I changed it to transform.up. The initial idea was to be a valve wheel rather than a vehicle wheel.
      I double-checked some stuff in the scene, and it still seemed to work even when the wheel was at different orientations. So, it may have just been some dumb luck. However, I did change it to Vector2.up, since that inconsistency in world/local bothers me.
      For the flattening of the vector, since the point is local, it's the z-value for hand depth that we want to ignore. Which I leave off when the hand position is converted to a local point.

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

    HELLO Bro! I NEED HELP: When I try to run my unity vr project, the object SHADER is visible in one eye and not in the other. HOW CAN I FIX THIS? PLEASE HELP

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

    Hey! When i try to implement this on one of my game objects I am not able to grab it, am I missing something collider wise? or an event?

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

      Not really, as long as your interactable has a collider, it should be fine. However, this does inherit from the BaseInteractable, not the GtabInteractable, so it doesn't allow you to grab and move it around. It just allows you to select the object, and the code takes care of the rest.

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

      @@VRwithAndrew its alright man i was able to figure it out thanks, do we have anything thing like a slider?

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

      @@vikramsindhu5901 Kinda, the functionality that makes the Bow and Arrow work is the same functionality for a slider.

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

      @@VRwithAndrew yes thats right i think that thing can easily be used I'll look it up

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

    Hi! Thanks for the awesome video! I only have 2 things to say:
    1. Only the ray interactor works, the direct interactor simply won't work for some reasons(I'm using Unity Mock HMD).
    2. When selecting the wheel using Ray and moving it in linear motion, it's fine. But when moving it in 1 full cycle (circular motion), the rotation is kinda weird, it first rotated and then suddenly pulled back when the total angle past 180 degree.
    Thank you!

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

      You need a rigid body on the wheel for it to work with the direct interactor! I had the same problem

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

      @@r8teful Which game object specifically do you put the rigidbody on? It seems that wherever I put it I still can't spin the wheel and it just falls to the floor.

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

    Thank you for this video!!!!!! :D

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

    I can only get this to work with a Ray Interactor on my XR controller and can not, for the life of me, get it to work with a Direct Interactor. It works if I put a normal Grab Interactable script on the steering wheel but then I can't have a custom behavior like this on it. Do you have any clue why this could be? Nice video btw, I like that it is clean and to the point, but for a beginner like me it is still all a bit to confusing and fast hahah.

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

      Okey I fixed it, just had to have a rigid body to the wheel (: