Пример #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);
        }
Пример #2
0
 public void UnSelectArrow()
 {
     SelectedArrow = null;
     ResetArrowColors();
 }
Пример #3
0
 public void SelectArrowZ()
 {
     SelectedArrow = ArrowZ;
     ResetArrowColors();
 }