threejs-worldgen
    Preparing search index...

    Class StormDamage

    Accumulates wind damage from a Weather into a DamageTarget: every interval seconds, wherever the wind (with gusts) is above threshold, damage grows with the excess. Deterministic per tick: ticks sit at fixed times, so the same weather and time range give the same damage. Damage is never undone when time goes backwards.

    Index

    Resolved settings.

    target: DamageTarget

    Where damage goes.

    weather: Weather

    The weather read for wind.

    • Processes every damage tick up to time seconds. The first call only sets the starting time.

      Parameters

      • time: number

      Returns void