updateM1 = (m1, m0, t1 = getMillisecond()) => {
const t = (t1 - m1.t) * 0.001,
r = {
x: m0.x - m1.x,
y: m0.y - m1.y
},
d2 = r.x * r.x + r.y * r.y,
d = Math.sqrt(d2);
const an = (system.factorG * m0.m) / d2,
a = {
anorm: an,
ax: (an / d) * r.x,
ay: (an / d) * r.y
};
m1.vx += t * a.ax;
m1.vy += t * a.ay;
m1.v = Math.sqrt(m1.vx * m1.vx + m1.vy * m1.vy);
m1.x += t * m1.vx;
m1.y += t * m1.vy;
}