public ArrowBuilder(ConeBuilder cone, CylindreBuilder cylindre)
 {
     Shapes     = new ShapeBuilder <MeshVertex>[] { cone, cylindre };
     Transforms = new Matrix[2]
     {
         Matrix.RotationX(Numerics.PIover2) * Matrix.Translate(0, 0, 0.5f * cone.height + cylindre.height),
         Matrix.RotationX(Numerics.PIover2) * Matrix.Translate(0, 0, 0.5f * cylindre.height)
     };
 }
Esempio n. 2
0
 public RotatorSphereBuilder(CircleBuilder circle)
 {
     Shapes = new ShapeBuilder <MeshVertex>[]
     {
         circle, //x
         circle, //y
         circle  //z
     };
     Transforms = new Matrix[]
     {
         Matrix.RotationX(-Numerics.PIover2) * Matrix.RotationY(-Numerics.PIover2),
         Matrix.Identity,
         Matrix.RotationX(-Numerics.PIover2)
     };
     Colors = new Vector4[] { Color4.Red, Color4.Blue, Color4.Green };
 }