本文整理汇总了C#中VectorLine.MakeCircle方法的典型用法代码示例。如果您正苦于以下问题:C# VectorLine.MakeCircle方法的具体用法?C# VectorLine.MakeCircle怎么用?C# VectorLine.MakeCircle使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类VectorLine
的用法示例。
在下文中一共展示了VectorLine.MakeCircle方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Start
void Start()
{
_vector = new VectorLine("beatcircle", new Vector3[10], Color.white, null, 1F, LineType.Continuous);
_vector.MakeCircle(Vector3.zero, 0.01F);
_vector.Draw3D();
_vector.vectorObject.transform.parent = transform;
gameObject.AddComponent<Scale>();
}
示例2: Circle
public Circle(Vector3 origin, float radius, Color theColor, int theWidth)
{
segments = Mathf.Max((int)radius, MAX_SEGMENTS);
vectorLine = new VectorLine("SelectCircle", new Vector3[segments * 2], theColor, null, theWidth);
vectorLine.MakeCircle(origin, Vector3.up, radius, segments);
prevPosition = origin;
circleColor = theColor;
this.radius = radius;
vectorLine.Draw3D();
}
示例3: Circle
public Circle(Vector3 origin, float radius, Color color, int width)
{
segments = Mathf.Min((int)(radius * 2 * Mathf.PI), MAX_SEGMENTS);
vectorLine = new VectorLine("SelectCircle", new Vector3[segments * 2], color, null, width, LineType.Discrete, Joins.Weld);
vectorLine.MakeCircle(origin, Vector3.up, radius, segments);
prevPosition = origin;
circleColor = color;
this.radius = radius;
//vectorLine.Draw3D();
}