Skip to content

Commit

Permalink
feat(Cesium): Add configuration to optionally disable surface collisi…
Browse files Browse the repository at this point in the history
…on detection.
  • Loading branch information
mdaehnert committed Nov 24, 2024
1 parent 2f2da4b commit 6ae8972
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions web/client/components/map/cesium/Map.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
1 change: 1 addition & 0 deletions web/client/configs/localConfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
"showGroundAtmosphere": false,
"enableFog": false,
"depthTestAgainstTerrain": false,
"enableCollisionDetection": true,
"terrainProvider": {
"type": "ellipsoid"
}
Expand Down

0 comments on commit 6ae8972

Please sign in to comment.