first cut at flocking birds, change willEmitVisualCallback to update

This commit is contained in:
ZappoMan 2014-03-04 14:41:06 -08:00
parent 374af9eeb5
commit ed703673b6

View file

@ -114,7 +114,7 @@ function sendNextCells() {
var sentFirstBoard = false;
function step() {
function step(deltaTime) {
if (sentFirstBoard) {
// we've already sent the first full board, perform a step in time
updateCells();
@ -127,5 +127,5 @@ function step() {
}
Script.willSendVisualDataCallback.connect(step);
Script.update.connect(step);
Voxels.setPacketsPerSecond(200);