platformer - v1.0.0
    Preparing search index...

    Interface CameraProps

    Props for Camera.

    interface CameraProps {
        bounds?: {
            bottom?: boolean;
            left?: boolean;
            right?: boolean;
            top?: boolean;
        };
        id?: symbol;
        lerp?: number;
        offset?: Vector;
        target?: symbol;
        zoom?: number;
    }
    Index

    Properties

    bounds?: { bottom?: boolean; left?: boolean; right?: boolean; top?: boolean }

    Optional boundary constraints.

    id?: symbol

    Optional camera entity id.

    lerp?: number

    Follow interpolation factor (0–1).

    offset?: Vector

    Positional offset from target.

    target?: symbol

    Entity to follow.

    zoom?: number

    Zoom level.