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

    Class SmoothStrategy

    A camera strategy that smoothly follows a target.

    Implements

    Index
    constraints?: CameraConstraints

    Optional spatial constraints for the camera.

    lerpFactor: number = 0.1

    The lerp factor for smoothing.

    maxRadius: number = 500

    Maximum allowed radius.

    minRadius: number = 2

    Minimum allowed radius.

    radius: number = 20

    The radius of the camera from the target.

    type: string = CameraStrategyType.SMOOTH

    The unique type identifier of the strategy.