Exemple #1
0
        public void Update(double delta)
        {
            var x  = subject.X;
            var y  = subject.Y;
            var dx = vx * delta;
            var dy = vy * delta;

            x += dx;
            y += dy;
            subject.SetPosition(new Position(x, y));
        }