Skip to content

Commit

Permalink
Bringing back assembly
Browse files Browse the repository at this point in the history
  • Loading branch information
sshahrokhi committed Jun 20, 2017
1 parent 0a27924 commit 564f460
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion games/assembly/assembly.js
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ function theGame($,phys,GameFramework, Box2D, drawutils, mathutils) {
this.impulseV.y *= forceScaler;
// apply the user force to all the robots
this.task.robots.forEach( function(r) {
var mag = this.task.noise;
var mag = this.task.noise*10*Math.random();
var ang = 2*Math.PI*Math.random();
var brownianImpulse = new phys.vec2( mag*Math.cos(ang) + this.impulseV.x,
mag*Math.sin(ang) + this.impulseV.y);
Expand Down

0 comments on commit 564f460

Please sign in to comment.