Add start of ship editing grid
This commit is contained in:
parent
b88c0eb358
commit
2fbabc785e
16 changed files with 249 additions and 18 deletions
|
@ -35,14 +35,14 @@ export default class Ship extends Body {
|
|||
|
||||
if (closestDistance > consts.MAX_PARENT_CELESTIAL_DISTANCE)
|
||||
return null;
|
||||
|
||||
|
||||
return closest;
|
||||
}
|
||||
|
||||
tick() {
|
||||
this.tickMotion();
|
||||
if (!state.editing) this.tickMotion();
|
||||
if (!this.landed) this.tickGravity(world.celestials);
|
||||
this.resolveCollisions();
|
||||
if (!state.editing) this.resolveCollisions();
|
||||
|
||||
this.modules.forEach(m => {
|
||||
if (m.type == 'thruster' && m.power !== 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue