Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save gee1k/368a9b0af258d11178bf348fab4728bf to your computer and use it in GitHub Desktop.
Save gee1k/368a9b0af258d11178bf348fab4728bf to your computer and use it in GitHub Desktop.
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