예제 #1
0
 static public void DrawCircle(Vector3 center, float radius)
 {
     GizmosExtensions.UseMatrix(
         Matrix4x4.TRS(
             center,
             Quaternion.identity,
             new Vector3(radius, radius, radius) * 2.0f
             ),
         () => Gizmos.DrawMesh(MeshExtensions.CreateCircle(32))
         );
 }
예제 #2
0
 static public void DrawDegreeSector(float start_angle, float end_angle, Vector3 center, float radius)
 {
     GizmosExtensions.UseMatrix(
         Matrix4x4.TRS(
             center,
             Quaternion.identity,
             new Vector3(radius, radius, radius) * 2.0f
             ),
         () => Gizmos.DrawMesh(MeshExtensions.CreateDegreeSector(start_angle, end_angle, 32))
         );
 }