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
datavoid*-
pointer to recording bytes
sizeint-
byte count of the recording
workerCountint-
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