游戏编程精粹学习 - 路径/线段平滑

来自《游戏编程精粹1》寻路部分文章,使用CatmullRom插值来达到平滑,算是对书中内容的练习。 在寻路上经常会用到此功能。     using UnityEngine; using System.Collections; public class Practice : MonoBehaviour { public Transform[] points; void OnDr
相关文章
相关标签/搜索