Skip to content
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.

feat: add option to allow camera to enter the earth's surface #329

Merged
merged 1 commit into from
Oct 12, 2022
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ const Cesium: React.ForwardRefRenderFunction<EngineRef, EngineProps> = (
? property.cameraLimiter?.cameraLimitterTargetArea?.height ?? Number.POSITIVE_INFINITY
: Number.POSITIVE_INFINITY
}
enableCollisionDetection={!property?.default?.allowEnterGround}
/>
<Camera
onChange={handleCameraChange}
Expand Down
1 change: 1 addition & 0 deletions src/components/molecules/Visualizer/Engine/ref.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ export type SceneProperty = {
terrainExaggeration?: number; // default: 1
terrainExaggerationRelativeHeight?: number; // default: 0
depthTestAgainstTerrain?: boolean;
allowEnterGround?: boolean;
skybox?: boolean;
bgcolor?: string;
ion?: string;
Expand Down