Strata - v1.4.10
    Preparing search index...

    Function calculateWindOffset

    • Calculate wind offset for cloud animation

      Parameters

      • time: number

        Current time value

      • windDirection: Vector2

        Wind direction vector

      • windSpeed: number

        Wind speed multiplier

      • target: Vector2 = ...

        Optional target vector to avoid allocations in render loops

      Returns Vector2

      Wind offset vector