Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(Cesium): Add configuration to optionally disable surface collision detection. #10691

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
feat(Cesium): Add configuration to optionally disable surface collisi…
…on detection.
mdaehnert committed Nov 24, 2024
commit 6ae8972612b5d132b83dcd601b9b532aea14c89b
3 changes: 3 additions & 0 deletions web/client/components/map/cesium/Map.jsx
Original file line number Diff line number Diff line change
@@ -192,6 +192,9 @@ class CesiumMap extends React.Component {
}
}

// Allow camera to clip through surface for viewing underground objects.
map.scene.screenSpaceCameraController.enableCollisionDetection = this.props.mapOptions?.enableCollisionDetection ?? true;

this.forceUpdate();
map.scene.requestRender();
}
1 change: 1 addition & 0 deletions web/client/configs/localConfig.json
Original file line number Diff line number Diff line change
@@ -40,6 +40,7 @@
"showGroundAtmosphere": false,
"enableFog": false,
"depthTestAgainstTerrain": false,
"enableCollisionDetection": true,
"terrainProvider": {
"type": "ellipsoid"
}