mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
20 lines
424 B
C#
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));
|
|
}
|
|
}
|
|
}
|