mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
clear octree interval
This commit is contained in:
parent
5e5c6158bb
commit
cb2fbd7e7f
1 changed files with 2 additions and 1 deletions
|
@ -22,6 +22,7 @@ function makeBoxes() {
|
||||||
for (i = 0; i < NUMBER_OF_BOXES; i++) {
|
for (i = 0; i < NUMBER_OF_BOXES; i++) {
|
||||||
createBox();
|
createBox();
|
||||||
}
|
}
|
||||||
|
Script.clearInterval(octreeQueryInterval);
|
||||||
}
|
}
|
||||||
|
|
||||||
function createBox() {
|
function createBox() {
|
||||||
|
@ -95,7 +96,7 @@ EntityViewer.setPosition({
|
||||||
z: 0
|
z: 0
|
||||||
});
|
});
|
||||||
EntityViewer.setKeyholeRadius(60000);
|
EntityViewer.setKeyholeRadius(60000);
|
||||||
Script.setInterval(function() {
|
var octreeQueryInterval = Script.setInterval(function() {
|
||||||
EntityViewer.queryOctree();
|
EntityViewer.queryOctree();
|
||||||
}, 1000);
|
}, 1000);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue