As Asar said, you probably need to change the step size. Try something like the following and see if you can solve the problem by changing t.
function Vertex(x,y,vx,vy,t) {
this.t = t
this.x = x;
this.y = y;
this.px = x-vx*t;
this.py = y-vy*t;
.......
this.tick = function() {
....
var tx = this.x;
var ty = this.y;
this.x = this.x + (this.x - this.px) + this.ax * this.t;
this.y = this.y + (this.y - this.py) + this.ay * this.t;
....
}
....
}
, , , .
if (this.y < this.r) {
this.y = 2 * this.r - this.y;
this.py = 2 * this.r - this.py;
}
, , , . , . , , , "this.ax * this.t". ( , ).
- , x y. , .
http://sandbox.electricgrey.com:8080/physics/physics.js