using System.Collections; using System.Collections.Generic; using UnityEngine; public class PhysicsBox : PhysicsPrimitive { /// /// 中心点 /// public Vector3 m_Center; /// /// 长宽高 /// public Vector3 m_Size; public float Long { get { return m_Size.x; } } public float Wide { get { return m_Size.y; } } public float Height { get { return m_Size.z; } } public void OnDrawGizmos() { if (!m_IsActive) return; Vector3 pos = m_Center + transform.position; Gizmos.color = m_HintColor; Gizmos.DrawCube(pos, m_Size); } private void Start() { base.OnInit(); } }