遊戲編程精粹學習 - 路徑/線段平滑

來自《遊戲編程精粹1》尋路部分文章,使用CatmullRom插值來達到平滑,算是對書中內容的練習。 在尋路上經常會用到此功能。     using UnityEngine; using System.Collections; public class Practice : MonoBehaviour { public Transform[] points; void OnDr
相關文章
相關標籤/搜索