mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 13:49:46 +02:00
first cut at flocking birds, change willEmitVisualCallback to update
This commit is contained in:
parent
374af9eeb5
commit
ed703673b6
1 changed files with 2 additions and 2 deletions
|
@ -114,7 +114,7 @@ function sendNextCells() {
|
||||||
|
|
||||||
var sentFirstBoard = false;
|
var sentFirstBoard = false;
|
||||||
|
|
||||||
function step() {
|
function step(deltaTime) {
|
||||||
if (sentFirstBoard) {
|
if (sentFirstBoard) {
|
||||||
// we've already sent the first full board, perform a step in time
|
// we've already sent the first full board, perform a step in time
|
||||||
updateCells();
|
updateCells();
|
||||||
|
@ -127,5 +127,5 @@ function step() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
Script.willSendVisualDataCallback.connect(step);
|
Script.update.connect(step);
|
||||||
Voxels.setPacketsPerSecond(200);
|
Voxels.setPacketsPerSecond(200);
|
Loading…
Reference in a new issue