b2w_setBodySensor function

  1. @Native<Void Function(Int64, Int32)>(ffi.Int64, ffi.Int32)>()
void b2w_setBodySensor(
  1. int bodyHandle,
  2. int isSensor
)

Make the shapes added to the body from now on sensors (isSensor != 0) or solid (0). Call it before adding them: shapes already on the body keep what they are, as Box2D cannot change a shape between the two.

Implementation

@ffi.Native<ffi.Void Function(ffi.Int64, ffi.Int32)>()
external void b2w_setBodySensor(int bodyHandle, int isSensor);