nape-js API
    Preparing search index...

    Class NapeList<T>

    Generic typed wrapper around Haxe list objects (BodyList, ShapeList, etc.).

    Provides a modern iterable interface with for...of, length, at(), etc.

    The engine's list getters (e.g. body.shapes) now return the cached typed list directly; this wrapper is kept for backwards compatibility only and allocates on every construction.

    Type Parameters

    • T

    Implements

    • Iterable<T>
    Index