blob: b273cb3d2248ade6fbc0ee87861cdda5334fde62 (
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
33
34
35
|
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()
{
if (!m_IsActive)
return;
Vector3 pos = m_Center + transform.position;
Gizmos.color = m_HintColor;
Gizmos.DrawCube(pos, m_Size);
}
private void Start()
{
base.OnInit();
}
}
|