GithubHelp home page GithubHelp logo

cs-vr-jenga's Introduction

CS-VR-Jenga

A Jenga game in VR

Project Setup

  1. Create a new Unity URP Project
  2. Window -> Package Manager -> Import XR plugin management
  3. Edit -> Project Settings -> Player -> Active input handling -> Both
  4. Restart Unity Project
  5. Window -> Package Manager -> Advanced -> Enable preview packages
  6. Package Manager -> XR Interaction Toolkit
  7. Package Manager -> XRI Toolkit Samples
  8. Add the left and right input samples to presets
  9. Add filters to the presets
  10. Edit -> Project Settings -> XR Plugin Management -> Enable Oculus (Android/PC)

Project Flow

  1. In the sample scene, remove all the assets except the Ground
  2. Import custom package -> Choose VR Jenga Asset pack
  3. Add the skybox
  4. Add the table
  5. Add the Jenga blocks
  6. Create the XR Rig Action based
  7. Add the Input System Manager
  8. Add the controllers into parent objects
  9. Create two more copies of controllers for both left and right each, name them Grab, Push and Teleport
  10. Add Grab, Push, Teleport prefabs inside each controller type
  11. Setup the controllers to match drag, push and teleport
  12. Add Controller Switcher to both, add the objects
  13. Open the Input asset, add "Controller Switcher" button to both Left and Right

Setup Teleport

  1. Locomotion System
  2. Teleportation Provider
  3. Teleportation Area

cs-vr-jenga's People

Contributors

indikman avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  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.