Removed some unneeded require()'s
This commit is contained in:
parent
10b9bec576
commit
cf369c166a
4
index.js
4
index.js
|
@ -1,8 +1,6 @@
|
|||
const fs = require('fs');
|
||||
const Planet = require('./planet');
|
||||
const PRNG = require('./prng');
|
||||
const Star = require('./star');
|
||||
const MersenneTwister = require('./twister');
|
||||
const utils = require('./utils');
|
||||
const data = require('./data.json');
|
||||
|
||||
|
@ -41,7 +39,7 @@ function generate(seed, amount) {
|
|||
position = {
|
||||
x: Math.cos(theta) * r * 100,
|
||||
y: Math.sin(theta) * r * 100,
|
||||
z: pseudoRandom.gaussrandom(thickness * 0.5)
|
||||
z: pseudoRandom.gaussrandom(thickness * 0.5) * 100
|
||||
};
|
||||
stars.push(new Star(new_name,pseudoRandom.range(1, 100000),position));
|
||||
}
|
||||
|
|
Reference in a new issue