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

Commit

Permalink
feat: add option to allow camera to enter the earth's surface (#329)
Browse files Browse the repository at this point in the history
functionality to enter ground
  • Loading branch information
KaWaite committed Oct 12, 2022
1 parent 25acdd9 commit 6255ad2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
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
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

0 comments on commit 6255ad2

Please sign in to comment.