官术网_书友最值得收藏!

Using Gaze-Based Control

Right now, our diorama is a third-person virtual reality experience. When you go into it, you're like an observer or a third-person camera. Sure, you can look around and add controls that let you move the camera's viewpoint. However, any action in the scene is seen from a third-person perspective.

In this chapter, we'll pretty much stay in third-person mode, but we'll get a little more personally involved. We will explore techniques that can be used to control objects in your virtual world by looking and staring. Our character, Ethan, will be under your control, responding to where you look. Furthermore, we'll start programming the Unity scripts. Along the way, we will discuss the following topics:

  • Adding AI (artificial intelligence) and a navmesh to our third-person character, Ethan
  • Unity programming in C#
  • Using your gaze to move a 3D cursor
  • Shooting and killing Ethan, the zombie, to good effect

Most introductions to Unity development tip-toe you through the easy stuff and maybe never even get to the more interesting, although more complex, things. We're going to mix things up in this chapter, throwing you into a few different 3D graphics topics, some of which will be a little advanced. If it's new to you, think of this as a survey tutorial. Nonetheless, we'll go through it step by step, so you should be able to follow along and have a lot of fun too!

主站蜘蛛池模板: 邢台市| 军事| 屯门区| 祁连县| 彩票| 化州市| 华亭县| 德庆县| 来宾市| 黄梅县| 邵东县| 镇安县| 太仆寺旗| 五华县| 香格里拉县| 青冈县| 江安县| 临安市| 读书| 盖州市| 青神县| 石棉县| 大石桥市| 日喀则市| 宜昌市| 绿春县| 海门市| 高唐县| 工布江达县| 宁陵县| 南溪县| 嘉峪关市| 新巴尔虎右旗| 苍南县| 化州市| 垦利县| 阳朔县| 寿宁县| 马鞍山市| 屯昌县| 怀化市|