Example #1
0
        internal BlenderAxis(Game game, EditorCamera camera) : base(game)
        {
            this.camera = camera;
            float size     = 0.3f;
            float distance = 0.5f;

            cubes.Add(CubeBuilder.MakeBasicCube(game.GraphicsDevice, Vector3.Zero, Vector3.UnitX * size, -Vector3.UnitY * size, Vector3.UnitZ * size), Color.White);
            cubes.Add(CubeBuilder.MakeBasicCube(game.GraphicsDevice, Vector3.UnitX * distance, Vector3.UnitX * size, -Vector3.UnitY * size, Vector3.UnitZ * size), Color.Red);
            cubes.Add(CubeBuilder.MakeBasicCube(game.GraphicsDevice, Vector3.UnitY * distance, Vector3.UnitX * size, -Vector3.UnitY * size, Vector3.UnitZ * size), Color.Green);
            cubes.Add(CubeBuilder.MakeBasicCube(game.GraphicsDevice, Vector3.UnitZ * distance, Vector3.UnitX * size, -Vector3.UnitY * size, Vector3.UnitZ * size), Color.Blue);
        }