If that’s not your style, feel free to replace the music with some funky beats! Chapter8 BGM: A simple GameObject with an Audio Source attached that plays classical music in the background.RW Props: Contains the statues in the scene and is the parent GameObject for the interactables.BasicLight & ExtraLights: Various lights for the scene.AdvancedFullChapter8: Contains all of the basic static meshes for the scene.The scene comes with a few things already set up: To get things started, open the Chapter 8 – Advanced Interactions scene from the Razeware \ Scenes folder, and review the scene in the editor. VRTK: The Virtual Reality Toolkit plugin.SteamVR: The SteamVR plugin, along with its scripts and prefabs.Standard Assets: Unity’s standard character controllers and physics materials.Resources: Contains the settings file for Oculus Avatar.
#Blade and sorcery vr controls code#
Plugins: Code libraries for the Oculus Rift.OculusPlatform, OVR & OvrAvatar: The APIs for the Oculus Rift.As you can see, this project comes pre-loaded with many assets: In Unity, open the starter project for this tutorial and look at the Project window. It’s time for some VR action! Getting Startedįirst, download the materials for this chapter using the Download Materials button at the top or bottom of this page.īefore diving straight into the deep end, take a moment to get familiar with the project. Use joints to accurately pick up objects. If you’ve already worked with VRTK a bit, and you feel that you’ve mastered the basics of implementing gameplay in virtual reality using VRTK, you’re ready to dive into some more exciting ways to interact with your virtual worlds.Ĭreate tooltips for objects and controllers. This is an abridged version of a chapter from our new book: Unity AR & VR by Tutorials.