TopDownOptions
@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?
optionalheight?: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?
optionalinitialLookAt?:Vec3Input
Defined in: packages/game-lib/src/lib/camera/perspectives/top-down-perspective.ts:19
Fallback lookAt point when no target exists.
initialPosition?
optionalinitialPosition?:Vec3Input
Defined in: packages/game-lib/src/lib/camera/perspectives/top-down-perspective.ts:17
Fallback camera position when no target exists.
targetKey?
optionaltargetKey?:string
Defined in: packages/game-lib/src/lib/camera/perspectives/top-down-perspective.ts:15
Key in CameraContext.targets to frame. Default 'primary'.
zoom?
optionalzoom?:number
Defined in: packages/game-lib/src/lib/camera/perspectives/top-down-perspective.ts:13
Orthographic frustum size. Default 10.