Files
CortexCore a379dc5cd3 1
2024-05-13 01:28:33 +08:00

14 lines
329 B
C#

#if UNITY_EDITOR
using UnityEngine;
namespace GSpawn
{
public static class MeshEx
{
public static float calcInscribedWorldSphereRadius(this Mesh mesh, Transform meshTransform)
{
return mesh.bounds.extents.getMaxAbsComp() * meshTransform.lossyScale.getMaxAbsComp();
}
}
}
#endif