b2w_setBodyFriction function

  1. @Native<Void Function(Int64, Float)>(ffi.Int64, ffi.Float)>()
void b2w_setBodyFriction(
  1. int bodyHandle,
  2. double friction
)

Set the friction of every shape on the body (chains included), from the next step on: ice, mud.

Implementation

@ffi.Native<ffi.Void Function(ffi.Int64, ffi.Float)>()
external void b2w_setBodyFriction(int bodyHandle, double friction);