mirror of
https://github.com/overte-org/overte.git
synced 2025-04-22 08:13:23 +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;
|
||||
|
||||
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);
|
Loading…
Reference in a new issue