mwg API
    Preparing search index...

    Interface ProjectileOptions

    interface ProjectileOptions {
        animation?: Animation;
        duration?: number;
        speed?: number;
    }
    Index
    animation?: Animation

    Flight frames for the missile art. The projectile advances this with its own elapsed time, so a caller reads frame/frameOffset here instead of keeping a second animation and an elapsed clock in step with the tween.

    duration?: number

    seconds to cross the whole flight; overrides speed when both are given

    speed?: number

    world units per second; ignored if duration is given