限制物體在某個軸上,必定範圍內移動

速度太快的話,同樣會穿透過去。ide 上圖,中間是個可移動的模型,兩邊Cube限制點:spa using System.Collections; using System.Collections.Generic; using UnityEngine; public class CarTrigger : MonoBehaviour {     public GameObject Point1;//限
相關文章
相關標籤/搜索