- Unity Virtual Reality Projects
- Jonathan Linowes
- 216字
- 2021-06-25 21:58:35
Ethan, the walker
Gaming is a common application of virtual reality. So, we might as well start out from there, too! We are going to give our character, Ethan, a life of his own. Well, sort of (or not), because he's going to become a zombie!
We left off at the diorama, with Ethan hanging out. You can make him run around the scene if you have a hand controller with a thumbstick or touchpad, but that is not guaranteed on some VR devices. In fact, if you're viewing the scene with a Google Cardboard, it's pretty unlikely that you'll have a handheld controller (notwithstanding the Bluetooth game controllers). In the next chapter, Chapter 5, Handy Interactables, we will go into handheld input controllers. For now, we will consider another way to make him move around, using the direction of your gaze while wearing your VR headset.
Before we attempt this, we'll first transform Ethan into a zombie and have him walk around aimlessly without any user control. We'll do this by giving him some AI and writing a script that sends him to random target locations.
AI controllers and NavMesh are somewhat advanced topics in Unity, but we're going to throw you into it just for fun. Besides, it's not as scary as zombies.
- OpenStack Cloud Computing Cookbook(Third Edition)
- Mastering phpMyAdmin 3.4 for Effective MySQL Management
- Wireshark Network Security
- Learning SQLite for iOS
- Windows Forensics Cookbook
- 信息技術應用基礎
- WordPress 4.0 Site Blueprints(Second Edition)
- Visual FoxPro程序設計習題集及實驗指導(第四版)
- ASP.NET開發與應用教程
- Mastering Akka
- Python3.5從零開始學
- Python編程:從入門到實踐(第3版)
- 算法圖解
- 軟件工程與UML案例解析(第三版)
- 從零開始學UI:概念解析、實戰提高、突破規則