Search Unity

  1. Improved Prefab workflow (includes Nested Prefabs!), 2D isometric Tilemap and more! Get the 2018.3 Beta now.
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice
  4. Want to see the most recent patch releases? Take a peek at the patch release page.
    Dismiss Notice

VR How can i add physics to the player?

Discussion in 'AR/VR (XR) Discussion' started by LtGamers-Laurence, Apr 14, 2018.

  1. LtGamers-Laurence

    LtGamers-Laurence

    Joined:
    Apr 19, 2015
    Posts:
    37
    Title says it all. I would like to add physics to the player so that if he/she walks off the edge of a platform they drop instead of float. Is this possible?
     
  2. AlexMollingerALTKEY

    AlexMollingerALTKEY

    Joined:
    Jun 14, 2017
    Posts:
    50
    I would suggest starting with the basics before heading into VR development. Pick any tutorial here and complete it. Rinse and repeat with another. https://unity3d.com/learn/tutorials
    Once done, you should be able to do this without any trouble.

    To answer the question : Yes it is possible. "How" can differ from platform to platform.
    Just put the camera inside a parent gameobject. Check the "player's" position every frame. If he's out of bound, translate the parent accordingly and the player will follow along.
     
  3. bradweiers

    bradweiers

    Unity Technologies

    Joined:
    Nov 3, 2015
    Posts:
    41
    For the record. I *highly* recommend against doing this to a player. It will cause motion sickness and generally make sure that they never play again.
     
    AlexMollingerALTKEY likes this.
  4. AlexMollingerALTKEY

    AlexMollingerALTKEY

    Joined:
    Jun 14, 2017
    Posts:
    50
    I concur!
    Unless you want a specific, never-trying-it-again feel like this :
     
  5. LtGamers-Laurence

    LtGamers-Laurence

    Joined:
    Apr 19, 2015
    Posts:
    37
    Iv been using unity for a very long time. I know what im doing when it comes to anything other then vr :p. Iv figured it out anyway. Thanks