Engine API Reference - v2.20.0-beta.0
    Preparing search index...

    Class InputFrame<T>Alpha

    Represents an input frame, which contains a map of input deltas.

    The shape of the input frame.

    Type Parameters

    • T extends Record<string, number[]>

      The shape of the input frame.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Methods

    Constructors

    • Alpha

      Type Parameters

      • T extends Record<string, number[]>

        The shape of the input frame.

      Parameters

      • data: T

        The input frame data, where each key corresponds to an input delta.

      Returns InputFrame<T>

    Properties

    deltas: { [K in string | number | symbol]: InputDelta } = ...

    Methods

    • Alpha

      Returns the current frame state and resets the deltas to zero.

      Returns { [K in string | number | symbol]: number[] }

      • The flushed input frame with current deltas.