Add score and fuel overlay
This commit is contained in:
parent
27c6a8bcd0
commit
4f8fd6e1af
13 changed files with 130 additions and 37 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue