b2w_setBodyFixedRotation function

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

Lock the body's rotation (fixed != 0): nothing turns it, not torques nor contacts. Its movement stays free.

Implementation

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