Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Moving the player

Discussion in 'VR' started by Abended, Sep 18, 2019.

  1. Abended

    Abended

    Joined:
    Oct 9, 2018
    Posts:
    142
    So in my game the player shoots/throws something. I then tween jump them to the object, however they are now standing above it, and thereby well above the "ground". Is there a way to introduce gravity to get them to settle in nicely on whatever ground they are on? I know that VR itself knows how tall I am, I'm not really sure how this would work.
    I can make a secondary relative object so that the player jumps near it's object, but I want to be sure that the second object is on the ground, not floating mid-air. I know I can lock x and z so the object falls to the ground. Will that work if I'm throwing the object, or will it not move if I lock coordinates? I can probably handle getting the player to the flat ground eventually, But I'd like it to look decent for inclines. Any ideas?