摘要: 转自:http://www.xuanyusong.com/archives/1977在上代码之前请大家跟我先做几个简单的练习题,角度向量的计算一定要学会,不然后面的东西会很难懂。1.已知3D坐标,和一个旋转角度,以及一段距离,求目标点的3D坐标。已知当前点为Target,目标点沿着Target的Y轴... 阅读全文
posted @ 2015-08-02 13:07 MATU 阅读(332) 评论(0) 推荐(0) 编辑
摘要: Mathf.Abs绝对值计算并返回指定参数 f 绝对值。Mathf.Acos反余弦static function Acos (f : float) : float以弧度为单位计算并返回参数 f 中指定的数字的反余弦值。Mathf.Approximately近似static function Appr... 阅读全文
posted @ 2015-08-02 12:17 MATU 阅读(644) 评论(0) 推荐(0) 编辑
摘要: Apply Root Motion 应用根动作:Should we control the character's position from the animation itself or from script.如果我们勾选了Animator组件中的Apply Root Motion选项角色的T... 阅读全文
posted @ 2015-08-02 12:16 MATU 阅读(582) 评论(0) 推荐(0) 编辑