Esempio n. 1
0
        public RotationCommand(IInputElement e, ObjectBase o)
        {
            X    = 0;
            Y    = 0;
            Z    = 0;
            _obj = o;
            o.AttachCommand(this);
            e.KeyUp += E_KeyUp;

            PropertyChanged += (sender, args) => Scene.CurrentScene.Redraw();
        }
Esempio n. 2
0
        public TranslateCommand(IInputElement e, ObjectBase o)
        {
            X       = 0;
            Y       = 0;
            Z       = 0;
            _matrix = new Matrix();
            _obj    = o;
            o.AttachCommand(this);
            e.KeyUp += E_KeyUp;

            PropertyChanged += (sender, args) => Scene.CurrentScene.Redraw();
        }