Exemplo n.º 1
0
 public static Mesh Create3DArrow(float HeadLength, float HeadWidth, float StickLength, float StickWidth, int nSlices)
 {
     Radial3DArrowGenerator gen = new Radial3DArrowGenerator() {
         Clockwise = true, Slices = nSlices, 
         HeadLength = HeadLength, HeadBaseRadius = HeadWidth*0.5f,
         StickLength = StickLength, StickRadius = StickWidth*0.5f
     };
     gen.Generate();
     return gen.MakeUnityMesh(true);
 }
Exemplo n.º 2
0
 public static Mesh Create3DArrow(float Length, float Width, int nSlices)
 {
     Radial3DArrowGenerator gen = new Radial3DArrowGenerator() {
         Clockwise = true, Slices = nSlices
     };
     gen.HeadLength = Length / 3.0f;
     gen.HeadBaseRadius = Width * 0.5f;
     gen.StickLength = Length - gen.HeadLength;
     gen.StickRadius = 0.5f * gen.HeadBaseRadius;
     gen.Generate();
     return gen.MakeUnityMesh(true);
 }