forked from bit/DotRecastNetSim
23 lines
643 B
C#
23 lines
643 B
C#
using DotRecast.Core.Numerics;
|
|
using System.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 Vector3 center;
|
|
|
|
public RcSphereGizmo(Vector3 center, float radius)
|
|
{
|
|
this.center = center;
|
|
this.radius = radius;
|
|
vertices = GenerateSphericalVertices();
|
|
triangles = GenerateSphericalTriangles();
|
|
}
|
|
}
|
|
} |