Small World Engine API Reference - v0.78.00
    Preparing search index...

    Interface FollowCameraBehaviorOptions

    interface FollowCameraBehaviorOptions {
        axes?: FollowCameraAxes;
        camera: CameraInterfaceData;
        damping?: number;
        offset?: Vector3D;
    }
    Index

    Constrains which axes follow the camera. Defaults to { x: true, y: true, z: true }.

    The camera to follow.

    damping?: number

    Optional lerp damping speed (0 = instant snap, > 0 = smooth lag). Defaults to 0 (instant).

    offset?: Vector3D

    Optional static 3D offset relative to the camera position.