diff --git a/bodies/robotbody_noright.svg b/bodies/robotbody_noright.svg new file mode 100644 index 0000000..b188e59 --- /dev/null +++ b/bodies/robotbody_noright.svg @@ -0,0 +1,65 @@ + + + +image/svg+xmlimage/svg+xml \ No newline at end of file diff --git a/lemming_sim_student.js b/lemming_sim_student.js index eef21d4..431c886 100644 --- a/lemming_sim_student.js +++ b/lemming_sim_student.js @@ -23,7 +23,7 @@ var simInfo = { airDrag: 0.1, // "air" friction of enviroment; 0 is vacuum, 0.9 is molasses boxFric: 0.005, // friction between boxes during collisions boxMass: 0.01, // mass of boxes - boxSize: 15, // size of the boxes, in pixels + boxSize: 10, // size of the boxes, in pixels robotSize: 13, // approximate robot radius, in pixels (note the SVG gets scaled down) robotMass: 0.4, // robot mass (a.u) gravity: 0, // constant acceleration in Y-direction @@ -96,7 +96,6 @@ class Lemming extends Robot { } move() { //if (sim.curSteps % 250 == 0) this.turnDeg(-90) - //return // TODO: Define Lemming program here. const vals = ['distL', 'distR', 'carry', 'wallL', 'wallR'] .reduce(((p,c) => ((p[c] = this.getSensorValById(c)), p)), {}) diff --git a/robotbody.svg b/robotbody.svg index c601e78..b188e59 100644 --- a/robotbody.svg +++ b/robotbody.svg @@ -13,18 +13,18 @@ version="1.1" x="0px" y="0px" - width="239.19885" + width="239.8282" height="186.78011" - viewBox="0 0 239.19885 186.78011" + viewBox="0 0 239.8282 186.78011" xml:space="preserve" id="svg11" - sodipodi:docname="robotbody_longleft_mediumright.svg" + sodipodi:docname="robotbody_noright.svg" inkscape:version="0.92.2 (unknown)">image/svg+xmlimage/svg+xml \ No newline at end of file