Giter Club home page Giter Club logo

google-cardboard-vr-navigation's Introduction

Google Cardboard VR with Unity Navigation / Pathfinding

Simple scripts for adding Unity Navigation and Pathfinding to Google Cardboard VR. (from Studio Pepwuper)

Direct Download Link to Unity Package (.unitypackage): https://github.com/pepwuper/Google-Cardboard-VR-Navigation/raw/master/GoogleCardboardVRNavigationForUnity.unitypackage

This works with Google Cardboard Unity SDK. Import the SDK into your project before using this.

To Set Up NavMesh for Google Cardboard VR:

  1. Make sure the GazePointer control is set up. (See Google Cardboard Demo scene for more info)
  2. Add FollowPlayer to CardboardMain prefab
  3. Add a player game object to the scene. Assign the player game object to the Player variable on FollowPlayer
  4. (optional) Also add FollowPlayer to the Canvas object in the Cardboard VR demo scene and assign the player gameobject to the Player variable if you want the menu to be at the player's feet at all times
  5. Add PlayerMotor to player
  6. Assign the GazePointer gameobject to the Cursor variable
  7. Set up nevmesh on the floor
  8. Add an Event Trigger to the floor object
  9. Add a "Pointer Click" event
  10. Assign Player to the Object field, Select "Runtime Only", then Select "PlayerMotor" -> "SetDestinationToCursor"
  11. Done!

© 2015 Studio Pepwuper http://www.pepwuper.com/

google-cardboard-vr-navigation's People

Contributors

thebrandonwu avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.