示例#1
0
        public void update(Core.Input.TgcD3dInput input)
        {
            var moveVector = TGCVector3.Empty;

            if (input.keyDown(Key.B))
            {
                moveVector += new TGCVector3(0, 7, 0);
                if (!volar)
                {
                    despegar();
                }
            }
            if (input.keyDown(Key.N))
            {
                moveVector += new TGCVector3(-17, 0, 0);
            }
            if (input.keyDown(Key.M))
            {
                moveVector += new TGCVector3(0, 0, -17);
            }

            helicoptero.Position = helicoptero.Position + moveVector;
            helice.Position      = helicoptero.Position + moveVector;

            if (volar)
            {
                helice.RotateY(1);
            }
        }