- 9
- 0
- 约1.48万字
- 约 12页
- 2016-10-16 发布于重庆
- 举报
Unity3d_FPS游戲教程3
PAGE
PAGE 12
FPS游戏教程3
Part 3: Advanced FPS 第三部分 高级FPS
This advancedlevel tutorial extends upon the previous FPS tutorials by introducing game elements such as waypoints, enemy AI, ragdolls and animation.
这个高级教程是原先FPS教程的延伸,介绍游戏元素,例如路径点、敌人AI,布偶和动画。
Prerequisites 先决条件
This tutorial assumes that you are familiar with the Unity interface and basic scripting
concepts. Additionally, you should already be familiar with the concepts discussed in
Part 1 and 2 of the FPS tutorial series.
这个指南已经默认了你已经熟悉了Unity界面和基本的脚本概念。你已经熟悉了第一部分和第二部分的FPS概念的讨论。
Setting up设置
We’re going to build upon the previous FPS tutorial, so we’ll begin by opening that:
我们将延伸我们的FPS教程,让我们开始吧:
Open the previous project (FPS Tutorial 2).
打开原先的项目(FPS 教程 2)
Waypoints 路径点
This section will introduce waypoints to our game, these are used to inform the robots
of the path that they can walk around. Let’s add three waypoints to our game:
这一节将介绍路径点到我们游戏中,即告知机器人它们能够在周围巡逻的路径,让我们增加三个路径点到我们游戏中:
Create an empty game object and rename this to Waypoint. Make sure the game object is placed approximately one meter above the ground level.
建立一个空的游戏对象并且重命名它为路径点(Waypoint),确保游戏对象被定位在地面上大约一米左右。
Add AutoWayPoint script to Waypoint. Notice how the empty game object now displays a W in the Scene View.
给路径点增加一个自动路径点(AutoWayPoint)脚本,注意怎么在场景视窗中显示空游戏对象(按W键)
Duplicate the WayPoint game object twice and arrange the waypoints in a triangle
shape (position quite far apart).
重复制作两个路径点游戏对象并且把它们排成一个三角形(距离远一些)
Check that the waypoints are visible to each other by firstly clicking on any waypoint then selecting Update Waypoint from the context menu of the AutoWayPoint script (the rightmost button on the component in the Inspector View). A green line will be drawn between visible waypoints, a red line for those which don’t have a clear line of sight.
检查一下这些路径点应该是彼此可见的,首先单击任一个路径点然后在自动路径点(AutoWayPoint)脚本的关联菜单上选择更新路径点(在检查视窗的组件上的最右边按钮),一个绿色的线将在可见的路径点之间画出来,一个红色的线表示视野中没有清晰的线。
We have now described the path that an enemy can walk around, now let’s add
您可能关注的文档
- Ubuntu1204硬盤安装教程(图文详解).doc
- ubuntugrub啟动项教程.docx
- UbuntuLinux實用学习教程.doc
- UCH模版教程,uchome模版制作教程,UCHome二次開发+模板基础语法,UCHome二次开发+规范.doc
- UCenter100圖文安装教程.doc
- Ubuntu1110安裝教程及设置.doc
- Ubuntu804硬盤安装图文详细教程.doc
- ucos-ii(源代碼开放的确良嵌入式os)教程.doc
- uc管理員培训教程.doc
- UC免流量示范詳解图文教程.doc
- 小区绿化施工协议书.docx
- 墙面施工协议书.docx
- 1 古诗二首(课件)--2025-2026学年统编版语文二年级下册.pptx
- (2026春新版)部编版八年级道德与法治下册《3.1《公民基本权利》PPT课件.pptx
- (2026春新版)部编版八年级道德与法治下册《4.3《依法履行义务》PPT课件.pptx
- (2026春新版)部编版八年级道德与法治下册《6.2《按劳分配为主体、多种分配方式并存》PPT课件.pptx
- (2026春新版)部编版八年级道德与法治下册《6.1《公有制为主体、多种所有制经济共同发展》PPT课件.pptx
- 初三教学管理交流发言稿.docx
- 小学生课外阅读总结.docx
- 餐饮门店夜经济运营的社会责任报告(夜间贡献)撰写流程试题库及答案.doc
原创力文档

文档评论(0)