培训3----unity入门——第九课导航网格寻路.pptxVIP

  • 3
  • 0
  • 约1.17千字
  • 约 16页
  • 2020-08-24 发布于湖北
  • 举报

培训3----unity入门——第九课导航网格寻路.pptx

导航网格寻路概述导航网格寻路系统简单示例导航网格寻路系统相关参数详解进阶使用新建好场景之后,添加几个几何体,然后如下图设置:画面中浅蓝色表示可以移动到的范围新建一个胶囊体,给它添加组件,会如下显示给运动物体添加控制脚本using UnityEngine;using System.Collections;public class point2Move : MonoBehaviour { Time startTime = null; public GameObject clickPoint; GameObject smallpoint = null; private Transform TargetObject = null; // Use this for initialization void Start () { } // Update is called once per frame //当单机鼠标时 void Update () { destination(); //if (System.DateTime.Now - startTime 0.1) (smallpoint!=null) { GameObject.Destroy(smallpoint); smallpoint = null; } } void destination(){ if(Input.GetMo

文档评论(0)

1亿VIP精品文档

相关文档