Skip to main content

TopDownOptions

@zylem/game-lib


@zylem/game-lib / core / TopDownOptions

Interface: TopDownOptions

Defined in: packages/game-lib/src/lib/camera/perspectives/top-down-perspective.ts:9

Configuration for the top-down perspective. The camera sits above the target and looks straight down at the XZ plane.

Properties​

height?​

optional height?: number

Defined in: packages/game-lib/src/lib/camera/perspectives/top-down-perspective.ts:11

Height above the target, in world units. Default 10.


initialLookAt?​

optional initialLookAt?: Vec3Input

Defined in: packages/game-lib/src/lib/camera/perspectives/top-down-perspective.ts:19

Fallback lookAt point when no target exists.


initialPosition?​

optional initialPosition?: Vec3Input

Defined in: packages/game-lib/src/lib/camera/perspectives/top-down-perspective.ts:17

Fallback camera position when no target exists.


targetKey?​

optional targetKey?: string

Defined in: packages/game-lib/src/lib/camera/perspectives/top-down-perspective.ts:15

Key in CameraContext.targets to frame. Default 'primary'.


zoom?​

optional zoom?: number

Defined in: packages/game-lib/src/lib/camera/perspectives/top-down-perspective.ts:13

Orthographic frustum size. Default 10.