blob: 93f2a45f7fd5f2a167ead6dddf7cab13e182cc1c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PhysicsBox : PhysicsPrimitive
{
/// <summary>
/// 中心点
/// </summary>
public Vector3 m_Center;
/// <summary>
/// 长宽高
/// </summary>
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()
{
Vector3 pos = m_Center + transform.position;
Gizmos.DrawCube(pos, m_Size);
}
private void Start()
{
base.OnInit();
}
}
|