b2w_bulkExtractTransforms function
Read count bodies at once, after a step. handles: count body handles.
buffer: count * 7 floats, written per body as
posX, posY, angle, velX, velY, isAwake (1 or 0), angularVelocity
A dead handle's seven are zeros.
Implementation
@ffi.Native<
ffi.Void Function(ffi.Pointer<ffi.Int64>, ffi.Pointer<ffi.Float>, ffi.Int32)
>()
external void b2w_bulkExtractTransforms(
ffi.Pointer<ffi.Int64> handles,
ffi.Pointer<ffi.Float> buffer,
int count,
);