interface WalkNavigationControllerParams {
    active?: boolean;
    bodyRadius?: number;
    collision?: boolean;
    eyeHeight?: number;
    fallAcceleration?: number;
    gravity?: boolean;
    keyboardEnabledOnlyOnMouseover?: boolean;
    keyboardLookDegreesPerSecond?: number;
    maxFall?: number;
    maxFallSpeed?: number;
    maxPitchDegrees?: number;
    maxSlopeDegrees?: number;
    mouseLookDegreesPerPixel?: number;
    obstacleFilter?: (objectId: string) => boolean;
    raycaster?: SceneRaycaster;
    runSpeed?: number;
    stepHeight?: number;
    suspendViewController?: ViewController;
    walkSpeed?: number;
    walkSurfaceFilter?: (objectId: string) => boolean;
}

Properties

active?: boolean

Whether the controller starts active.

Default is true.

bodyRadius?: number

Approximate body radius used for horizontal obstacle tests.

Default is 0.28.

collision?: boolean

Enables horizontal obstacle tests.

Default is true.

eyeHeight?: number

Camera height above the walked surface, in world-space units.

Default is 1.7.

fallAcceleration?: number

Downward acceleration while falling, in world-space units per second squared.

Default is 9.8.

gravity?: boolean

Enables floor following.

Default is true.

keyboardEnabledOnlyOnMouseover?: boolean

Only handle keyboard movement while the pointer is over the View element.

Default is true.

keyboardLookDegreesPerSecond?: number

Arrow-key look speed, in degrees per second.

Default is 90.

maxFall?: number

Maximum drop that the controller will snap down to while floor following. Larger unsupported drops become an actual fall.

Default is 1.5.

maxFallSpeed?: number

Maximum downward falling speed, in world-space units per second.

Default is 30.

maxPitchDegrees?: number

Maximum up/down look angle from the horizontal plane, in degrees.

Default is 85.

maxSlopeDegrees?: number

Maximum walkable surface slope, in degrees.

Default is 50.

mouseLookDegreesPerPixel?: number

Mouse-look sensitivity, in degrees per pointer pixel.

Default is 0.12.

obstacleFilter?: (objectId: string) => boolean

Optional object filter for horizontal obstacle tests.

raycaster?: SceneRaycaster

Optional raycaster used for floor following and obstacle tests.

When omitted, the controller creates a SceneRaycaster for the View's Scene.

runSpeed?: number

Walking speed while holding Shift, in world-space units per second.

Default is 8.5.

stepHeight?: number

Maximum height that the controller can step up onto.

Default is 0.35.

suspendViewController?: ViewController

Optional standard ViewController to suspend while walk navigation is active.

Use this when enabling walk navigation inside Viewer/Studio applications that already have the default camera controller installed.

walkSpeed?: number

Normal walking speed, in world-space units per second.

Default is 4.

walkSurfaceFilter?: (objectId: string) => boolean

Optional object filter for floor-following raycasts.