2017年3月22日
摘要: Lerp,就是返回两个值之间的插值,一般有三个参数。第一个参数为初始值,第二个参数为最终值,插值为0~1d的一个浮点数值,为0时为初始值,1时为最终值,为0到1之间的数值时返回一个混合数值。若第三个参数为Time.daltaTime,这返回随时间推移的一个值。 以Color.Lerp为例 运行之后, 阅读全文
posted @ 2017-03-22 16:23 懒人起烂名 阅读(1995) 评论(0) 推荐(0) 编辑
摘要: 1,射线 (1)Ray射线 A ray is an infinite line starting at origin and going in some direction. Ray是具有开始点和方向的无穷线。 构造: C# => static Object Instantiate(Object o 阅读全文
posted @ 2017-03-22 11:25 懒人起烂名 阅读(817) 评论(0) 推荐(0) 编辑