Skip to main content

b2World_StartRecording

Function b2World_StartRecording 

Source
pub unsafe extern "C" fn b2World_StartRecording(
    worldId: b2WorldId,
    recording: *mut b2Recording,
)
Expand description

Begin recording the world into @p recording. Serializes a snapshot of the current world as the seed, then logs every mutating call. Call at a step boundary, before or after creating bodies. Start before the first step to capture the whole session. No effect if already recording or if the world is locked. @param worldId The world to record @param recording A recording buffer from b2CreateRecording