Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/oscardelgado02/vr-unity-template
Template for Unity to start developing a VR application.
https://github.com/oscardelgado02/vr-unity-template
unity unity-3d unity-editor unity-virtual-reality-projects unity-vr unity-xr unity-xr-interaction-toolkit unity3d unityvr virtual-reality virtualreality vr xr
Last synced: 2 days ago
JSON representation
Template for Unity to start developing a VR application.
- Host: GitHub
- URL: https://github.com/oscardelgado02/vr-unity-template
- Owner: oscardelgado02
- License: mit
- Created: 2024-04-12T15:31:58.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-04-12T15:43:55.000Z (7 months ago)
- Last Synced: 2024-04-12T23:06:47.840Z (7 months ago)
- Topics: unity, unity-3d, unity-editor, unity-virtual-reality-projects, unity-vr, unity-xr, unity-xr-interaction-toolkit, unity3d, unityvr, virtual-reality, virtualreality, vr, xr
- Language: C#
- Homepage:
- Size: 15 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://docs.unity3d.com/Packages/[email protected]/manual/index.html) 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.
### Hand Tracking
There is another scene with Hand Tracking Input instead of controllers. It needs to be updated to have UI interaction and physic-based hands, but the rest of features are working.
- To grab objects, use a pinch gesture.
- To teleport, open the palm, aim to the location you want to teleport and then pinch to trigger the teleportation.## Getting Started
All the packages should be installed, but if the template doesn't work, ensure you have the following packages installed via the Unity Package Manager:
- XR Interaction Toolkit
- XR Plugin ManagementTo use the Hand Tracking, it is also necessary to have installed XR Hands.
Once installed, navigate to "Edit/Project Settings/XR Plug-in Management" and select the appropriate Plug-in Providers based on your VR hardware. For the Hand Tracking, it is necessary to use OpenXR.
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!