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

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