b2w_addBoxShape function

  1. @Native<Void Function(Int64, Float, Float, Float, Float, Float)>(ffi.Int64, ffi.Float, ffi.Float, ffi.Float, ffi.Float, ffi.Float)>()
void b2w_addBoxShape(
  1. int bodyHandle,
  2. double halfW,
  3. double halfH,
  4. double density,
  5. double friction,
  6. double restitution,
)

Attach a box centred on the body's origin. halfW/halfH are half-extents.

Implementation

@ffi.Native<
  ffi.Void Function(
    ffi.Int64,
    ffi.Float,
    ffi.Float,
    ffi.Float,
    ffi.Float,
    ffi.Float,
  )
>()
external void b2w_addBoxShape(
  int bodyHandle,
  double halfW,
  double halfH,
  double density,
  double friction,
  double restitution,
);