DotRecastNetSim/src/DotRecast.Recast.Toolset/Gizmos/RcSphereGizmo.cs

21 lines
616 B
C#

using DotRecast.Core.Numerics;
using static DotRecast.Recast.Toolset.Gizmos.RcGizmoHelper;
namespace DotRecast.Recast.Toolset.Gizmos
{
public class RcSphereGizmo : IRcGizmoMeshFilter
{
public readonly float[] vertices;
public readonly int[] triangles;
public readonly float radius;
public readonly RcVec3f center;
public RcSphereGizmo(RcVec3f center, float radius)
{
this.center = center;
this.radius = radius;
vertices = GenerateSphericalVertices();
triangles = GenerateSphericalTriangles();
}
}
}