示例#1
0
        private void Start()
        {
            float scale = 0.25f;

            //Vector2f a = new Vector2f(-1, -1) * scale;
            //Vector2f b = new Vector2f(1, -1) * scale;
            //Vector2f c = new Vector2f(0, 1) * scale;

            //shape = CreatePolygon2.FromTriangle(a, b, c);
            shape = CreatePolygon2.FromStar4(Vector2f.Zero, scale);
            shape.BuildIndices();
        }