add timestamps to log
This commit is contained in:
parent
663305bd23
commit
0ea163dfb7
6 changed files with 43 additions and 14 deletions
|
@ -76,7 +76,7 @@ class Physics {
|
|||
var r = 0.1;
|
||||
var body = game.world.bodies[i];
|
||||
var pos = body.getPos();
|
||||
if (Math.abs(body.r - pos.r) > 0.3) pos.r = body.r;
|
||||
if (Math.abs(body.r - pos.r) > 1) pos.r = body.r;
|
||||
var x = (body.x * r + pos.x) / (r + 1);
|
||||
var y = (body.y * r + pos.y) / (r + 1);
|
||||
var r = (body.r * r + pos.r) / (r + 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue