Ejemplo n.º 1
0
        public CrossArrow3D(GraphicsDevice g, Matrix Projection)
        {
            ArrowX = new Arrow3D(g, Projection, Color.Red);
            ArrowX.Scale(new Vector3(1f, 1f, 5f));
            ArrowX.Position = new Vector3(0f, 0f, -5.5f);

            ArrowY = new Arrow3D(g, Projection, Color.Yellow);
            ArrowY.Scale(new Vector3(1f, 1f, 5f));
            ArrowY.Rotate(0f, MathHelper.ToRadians(270f), 0f);
            ArrowY.Position = new Vector3(0f, -4.5f, 0f);

            ArrowZ = new Arrow3D(g, Projection, Color.Blue);
            ArrowZ.Scale(new Vector3(1f, 1f, 5f));
            ArrowZ.Rotate(MathHelper.ToRadians(90f), 0f, 0f);
            ArrowZ.Position = new Vector3(-5.5f, 0f, 0f);
        }
Ejemplo n.º 2
0
 public void Scale(Vector3 TotalScale)
 {
     ArrowX.Scale(TotalScale);
     ArrowY.Scale(TotalScale);
     ArrowZ.Scale(TotalScale);
 }