Skip to content

oscardelgado02/VR-Unity-Template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VR-Unity-Template

VR-Unity-Template is an open-source solution for kickstarting VR application development using Unity. This template leverages the XR Interaction Toolkit and boasts UI support for VR, enhanced user teleportation, player collision with obstacles, physical emulated hands, and interactive doors!

Features

VR UI Components

Enjoy VR-native UI elements such as Buttons, Dropdowns, and Sliders, seamlessly integrated with VR controllers. Simply point and click using the "Trigger" button on your VR controller to interact with UI elements.

Enhanced Teleportation

Teleport with ease by holding the Right Controller Thumbstick forward, pointing to your desired location, and releasing. Teleportation is restricted to designated "Teleport" layers, ensuring a smooth experience while navigating your VR environment.

Player Collision Avoidance

Navigate your VR world without fear of collisions. The player is intelligently pushed away from walls and obstacles, preventing awkward interactions. Controller movements are also governed by physics, ensuring they behave realistically within the environment.

Object Interaction

Interact with objects in two distinct ways: XR Grab Interactable and XR Physical Grab Interactable. XR Physical Grab Interactables behave realistically, preventing them from passing through obstacles, while XR Grab Interactables offer a smoother interaction experience.

Interactive Doors

Add immersive doors to your VR environment. Though currently undergoing refinement for smoother operation, simply grasp the door handle to open it and explore new areas within your virtual world.

Object Manipulation

Utilize physics-based hands to manipulate objects within your VR space. Push objects with attached rigid bodies to create dynamic interactions and enhance the realism of your virtual environment.

Getting Started

Ensure you have the following packages installed via the Unity Package Manager:

  • XR Interaction Toolkit
  • XR Plugin Management

Once installed, navigate to "Edit/Project Settings/XR Plug-in Management" and select the appropriate Plug-in Providers based on your VR hardware (e.g., Oculus).


Connect your VR headset to your PC, ensure relevant software (e.g., Oculus App) is running, and dive into the exciting world of VR development!