new-horizons/NewHorizons/Utility/Geometry/BoxShapeVisualizer.cs
2023-03-18 16:28:05 -04:00

20 lines
424 B
C#

using UnityEngine;
namespace NewHorizons.Utility.Geometry
{
public class BoxShapeVisualizer : MonoBehaviour
{
BoxShape box;
void Awake()
{
box = GetComponent<BoxShape>();
}
void OnRenderObject()
{
Popcron.Gizmos.Cube(transform.TransformPoint(box.center), transform.rotation, Vector3.Scale(box.size, transform.lossyScale));
}
}
}