Documentation
    Preparing search index...

    Interface ForceFieldSystemOptions

    Options for ForceFieldSystem.

    interface ForceFieldSystemOptions {
        fields?: Iterable<
            {
                field: ForceField;
                units: ForceFieldUnits;
                wakesSleepingBodies?: boolean;
            },
            any,
            any,
        >;
        priority?: number;
        worlds?: Iterable<PhysicsWorld, any, any>;
    }
    Index
    fields?: Iterable<
        {
            field: ForceField;
            units: ForceFieldUnits;
            wakesSleepingBodies?: boolean;
        },
        any,
        any,
    >

    Fields to register immediately, in order. Equivalent to calling ForceFieldSystem.addField for each. wakesSleepingBodies defaults to false when omitted, matching ForceFieldAddOptions.

    priority?: number

    Execution order key (§39). Defaults to PRIORITY_FORCES (500) — step 5, "force generation", which runs before PhysicsSystem's solve at 600. Read once, at registration, like every other system's priority.

    worlds?: Iterable<PhysicsWorld, any, any>

    Worlds to track immediately, in order. Equivalent to calling ForceFieldSystem.track for each, which is what the constructor does.