Skip to content

Commit cb4f21b

Browse files
authored
update agent nudging
1 parent 20f4e24 commit cb4f21b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/agent.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export default class Agent
7373
avgVel.z += m[i].z * (weight[i] / totalweight);
7474
}
7575

76-
if(avgVel.length() < 0.003)
76+
if(avgVel.length() < 0.01)
7777
{
7878
avgVel.x = tempg.x*0.1;
7979
avgVel.y = tempg.y*0.1;
@@ -89,4 +89,4 @@ export default class Agent
8989
this.position = this.goal;
9090
}
9191
}
92-
}
92+
}

0 commit comments

Comments
 (0)