Created
March 3, 2021 14:51
-
-
Save gee1k/368a9b0af258d11178bf348fab4728bf to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var objectsToExclude = [point]; | |
viewer.scene.postRender.addEventListener(function () { | |
var position = point.position.getValue(viewer.clock.currentTime); | |
point.position = viewer.scene.clampToHeight(position, objectsToExclude); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment