3D数学复习 using System.Collections; using System.Collections.Generic; using UnityEngine; public class w07d1 : MonoBehaviour { public Quaternion result1; public Quaternion result2; public Quaternion result3; // 什么是单位四元数? // [0, 0, 0, 1] 表示无旋转 // [n.x * s
http://blog.csdn.net/liujunjie612/article/details/45847877 我们接着上一篇博文继续研究摄像机,这篇我们说下Unity中摄像机的切换,说到切换,前提是有多个 摄像机,所以我们新建二个摄像机. 我们再创建一个空物体挂上我们新建的脚本CameraSwitch,用来控制摄像机的切换 代码如下: using UnityEngine; using System.Collections; public class CameraSwitch : Mono
方式一:将摄像机直接拖到游戏对象的下面: 方式二:脚本实现 using System.Collections; using System.Collections.Generic; using UnityEngine; public class kow : MonoBehaviour { public Transform targetTr; public float dist = 10.0F; public float height = 3.0F; public float dampTrace =