b2w_bulkExtractTransforms function

  1. @Native<Void Function(Pointer<Int64>, Pointer<Float>, Int32)>(ffi.Pointer<ffi.Int64>, ffi.Pointer<ffi.Float>, ffi.Int32)>()
void b2w_bulkExtractTransforms(
  1. Pointer<Int64> handles,
  2. Pointer<Float> buffer,
  3. int count
)

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,
);