b2w_setBodyType function

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

Change a body's type. Expensive, and it sums the mass from the shapes again (call b2w_setBodyMass after it). The type it already has does nothing.

Implementation

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