Table of Contents

Method b3RecPlayer_Create

Namespace
Box3D.Native
Assembly
Box3D.NET.Native.dll

b3RecPlayer_Create(void*, int, int)

Create a player over a recording. Owns a private copy of the bytes.

public static extern b3RecPlayer* b3RecPlayer_Create(void* data, int size, int workerCount)

Parameters

data void*

pointer to recording bytes

size int

byte count of the recording

workerCount int

worker count for the replay world; pass 1 to match a serial recording. Replaying at a different count re-partitions the constraint graph, so the StateHash check becomes a cross-thread determinism test. Adjustable later with b3RecPlayer_SetWorkerCount.

Returns

b3RecPlayer*

a new player, or NULL on bad header or deserialization failure