aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorrahiel <rahiel@protonmail.ch>2015-10-22 09:21:19 +0200
committerrahiel <rahiel@protonmail.ch>2015-10-22 09:21:19 +0200
commit388165b70514c6bb5b38f32714341dd4470afdce (patch)
treef2c3c5090193cc7fcde8eb8737e1b7246b54d36f
parent01cce0e3439477f6559925156d882e82b616abab (diff)
update name of texture set
-rw-r--r--main.js2
-rw-r--r--systems.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/main.js b/main.js
index b469db4..b296252 100644
--- a/main.js
+++ b/main.js
@@ -19,7 +19,7 @@ let menuList = [
{"label":"Two Bodies", "function": systems.gen2Bodies, "args": [true]},
{"label":"Three Bodies", "function": systems.gen3Bodies, "args": [true]},
{"label":"Random Bodies", "function": systems.genBodies, "args": [200, true, false]},
- {"label":"Angular Momentum", "function": systems.genBodiesRot, "args": [200, "planets", true, false]},
+ {"label":"Angular Momentum", "function": systems.genBodiesRot, "args": [200, "solar", true, false]},
{"label":"Angular with Bounce", "function": systems.genBodiesRot, "args": [200,"balls", true, true, true]},
{"label":"Butterfly 1", "function": systems.genButterFly1, "args": []},
{"label":"Yin Yang 1", "function": systems.genYinYang1, "args": []},
diff --git a/systems.js b/systems.js
index f4b9b70..b791228 100644
--- a/systems.js
+++ b/systems.js
@@ -239,7 +239,7 @@ export function genBodies(n, bodyTexture, sunOn, collisions) {
let velVec = new Vec3(getRandomInt(-500,500), getRandomInt(-500,500), getRandomInt(-500,500));
let rotation = new Vec3(0, randomRot(), 0);
- bodies.push(new Body(1E16, posVec, velVec, 8, getRandomFromList(textureSets.planets), rotation));
+ bodies.push(new Body(1E16, posVec, velVec, 8, getRandomFromList(textureSets.solar), rotation));
}
return {