Class SerializationPipeline

A pipeline for serializing the physics scene.

To avoid leaking WASM resources, this MUST be freed manually with queryPipeline.free() once you are done using it (and all the rigid-bodies it created).

Hierarchy

  • SerializationPipeline

Constructors

Properties

Methods

Constructors

  • Parameters

    • Optional raw: RawSerializationPipeline

    Returns SerializationPipeline

Properties

raw: RawSerializationPipeline

Methods

  • Deserialize the complete physics state from a single byte array.

    Parameters

    • data: Uint8Array

      The byte array to deserialize.

    Returns World

  • Release the WASM memory occupied by this serialization pipeline.

    Returns void

Generated using TypeDoc