Search Unity

Question Player into the car Unity3D SteamVR

Discussion in 'VR' started by daola, Nov 20, 2021.

  1. daola

    daola

    Joined:
    Jan 19, 2019
    Posts:
    2
    I want to use the joystick button to move the player inside the car and then use the joystick to control the car. How do I assign a button to enter the car and how do I move the player into the car, as well as transfer control from the player to the car?
    I've been looking for information about this for several days, but I can't find the right solution..
     
  2. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    5,057
    New or old input system?
    Generally:
    -Read input (in if statement or action with new system)
    - Fade to black
    - Move player position and disable collider of body so it doesn't collide with car (I'd force the position of the camera to avoid small people not seeing the road) and do the other needed things, like switching controls with bools
    - Fade back