add fixture autofire
This commit is contained in:
parent
d9e8e217c6
commit
8e0c4b02e4
9 changed files with 40 additions and 8 deletions
|
@ -113,6 +113,8 @@ class Body {
|
|||
if(pos.y < bounds.top) this.applyForce(0, 0.03);
|
||||
if(pos.y > bounds.bottom) this.applyForce(-0, -0.03);
|
||||
|
||||
this.mounts.forEach(m => m.tick());
|
||||
|
||||
this.sleepTime++;
|
||||
|
||||
this.tickType();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue