mirror of
https://github.com/overte-org/overte.git
synced 2025-04-12 07:11:34 +02:00
legacy support for EntityViewer.setKeyholeRadius()
This commit is contained in:
parent
2f490a0684
commit
ef433c0e01
3 changed files with 4 additions and 3 deletions
|
@ -95,9 +95,9 @@ EntityViewer.setPosition({
|
|||
y: 0,
|
||||
z: 0
|
||||
});
|
||||
EntityViewer.setKeyholeRadius(60000);
|
||||
EntityViewer.setCenterRadius(60000);
|
||||
var octreeQueryInterval = Script.setInterval(function() {
|
||||
EntityViewer.queryOctree();
|
||||
}, 1000);
|
||||
|
||||
Script.update.connect(update);
|
||||
Script.update.connect(update);
|
||||
|
|
|
@ -45,7 +45,7 @@ function debug() { // Display the arguments not just [Object object].
|
|||
//print.apply(null, [].map.call(arguments, JSON.stringify));
|
||||
}
|
||||
|
||||
EntityViewer.setKeyholeRadius(QUERY_RADIUS);
|
||||
EntityViewer.setCenterRadius(QUERY_RADIUS);
|
||||
|
||||
// ENTITY DATA CACHE
|
||||
//
|
||||
|
|
|
@ -47,6 +47,7 @@ public slots:
|
|||
void setPosition(const glm::vec3& position) { _viewFrustum.setPosition(position); }
|
||||
void setOrientation(const glm::quat& orientation) { _viewFrustum.setOrientation(orientation); }
|
||||
void setCenterRadius(float radius) { _viewFrustum.setCenterRadius(radius); }
|
||||
void setKeyholeRadius(float radius) { _viewFrustum.setCenterRadius(radius); } // TODO: remove this legacy support
|
||||
|
||||
// setters for LOD and PPS
|
||||
void setVoxelSizeScale(float sizeScale) { _voxelSizeScale = sizeScale; }
|
||||
|
|
Loading…
Reference in a new issue