VR in Unity
Treehouse
Course Summary
Virtual reality is the combination of a head-mounted display and some clever software that creates the sensation of being in another place. What was once science fiction has rapidly become one of the most practical avenues to creating immersive entertainment, simulation and training, architectural visualization, and more. In this course, we'll learn how to setup the HTC Vive within the Unity game engine. Then, we'll create a fun and challenging basketball game with realistic physics and sound that can be played in virtual reality.
-
+
Course Description
About this Course Virtual reality is the combination of a head-mounted display and some clever software that creates the sensation of being in another place. What was once science fiction has rapidly become one of the most practical avenues to creating immersive entertainment, simulation and training, architectural visualization, and more. In this course, we'll learn how to setup the HTC Vive within the Unity game engine. Then, we'll create a fun and challenging basketball game with realistic physics and sound that can be played in virtual reality. What you'll learn
- VR Game Design
- Unity VR API
- Audio in VR
- Physics in VR
About the Teacher
Nick is a teacher at Treehouse and an independent game developer. His Twitter handle is @nickrp.
-
+
Course Syllabus
VR Setup
VR is still relatively new technology. Before starting any VR project, it's a good idea to make sure that your VR headset is working within Unity. This way it's a bit easier to isolate bugs during development as they arise, should there be any hardware, software, or performance issues. 5 steps- Introduction and System Requirements 2:43
- Project Overview 5:26
- VR Camera Setup 11:14
- HTC Vive Setup 3:13
- VR Setup Review 6 questions
Physics Setup
Most modern games feature physical simulations of some sort or another. However, VR allows people to see your simulated worlds in stereoscopic 3D and interact with more fidelity than ever before. At the same time, intense physics simulations can be the source of performance problems. For these reasons, there are some additional physics considerations that should be made when creating a VR project. 6 stepsPhysics Scripting
Beyond the Unity editor, colliders and Rigidbody components can be further customized via script. This can be useful, and even critical, when physics need to be enabled or disabled temporarily on a GameObject with which the player is interacting. 7 stepsGameplay
VR comes with some strengths and weaknesses that must be carefully considered in order to create comfortable experiences. Writing gameplay code in VR isn't much different from traditional Unity projects, but before writing any code at all, it's important to think about how VR impacts game design and user experience. 5 stepsPositional Audio
In the real world, sounds change when we move closer and further away from the source. Modeling this behavior in a virtual environment will greatly add to the overall sense of presence and believably. 7 steps