Add score and fuel overlay

This commit is contained in:
asraelite 2018-03-07 01:23:35 +00:00
parent 27c6a8bcd0
commit 4f8fd6e1af
13 changed files with 130 additions and 37 deletions

View file

@ -105,8 +105,8 @@ export default class Body {
applyDirectionalForce(x, y, r) {
let [vx, vy] = this.rotateVector(x, y);
this.xvel += vx;
this.yvel += vy;
this.xvel += vx / this.mass;
this.yvel += vy / this.mass;
this.rvel += r / this.mass;
}