Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

How to drive car in VR

Discussion in 'AR/VR (XR) Discussion' started by nsmith1024, Oct 6, 2018.

  1. nsmith1024

    nsmith1024

    Joined:
    Mar 18, 2014
    Posts:
    809
    Hello,

    I have a simple 3D game im porting to VR. Im using VRTK.

    In my game the player can get in a car seat and drive the car by using the mouse moving side to side to turn, up down arrows to speed up, slow down etc. To drive the car, right now i simply parent the avatar to the car seat gameObject.

    How do i do that using VRTK? Do i parent the [CameraRig] to the car seat?

    Actually im using UMA avatar that is parented to the [CameraRig] right now.

    How do i steer in VR? is that by twisting the controller side to side or something like that?

    Anybody knows?

    Thanks
     
  2. tkannan565

    tkannan565

    Joined:
    Mar 30, 2020
    Posts:
    1
    Hi, I'm trying to do the same thing as you. I have to drive a vehicle and I'm using VRTK. Have you figured out how to do this? Mind helping this soul, please:)
     
  3. arfish

    arfish

    Joined:
    Jan 28, 2017
    Posts:
    242
    How about turning the steering wheel, for example by moving, or twisting the controllers?
     
unityunity