Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 486 Bytes

File metadata and controls

27 lines (18 loc) · 486 Bytes

walk mode for CesiumJS

Control the camera in CesiumJS as if you were walking around. Use w, a, s and d keys to move.

Demo

Demo

Installation

npm i --save @geoblocks/cesium-walk

Usage

import {Viewer} from 'cesium';
import WalkCameraMode from '@geoblocks/cesium-walk';

const viewer = new Viewer(...);
const mode = new WalkCameraMode(viewer.scene);

// ...
mode.active = true;