b2w_setWheelMotor function

  1. @Native<Void Function(Int64, Float, Float, Int32)>(ffi.Int64, ffi.Float, ffi.Float, ffi.Int32)>()
void b2w_setWheelMotor(
  1. int jointHandle,
  2. double speed,
  3. double maxTorque,
  4. int enable,
)

Drive a wheel joint's wheel at speed (radians per second) with up to maxTorque (enable != 0), or turn the motor off.

Implementation

@ffi.Native<ffi.Void Function(ffi.Int64, ffi.Float, ffi.Float, ffi.Int32)>()
external void b2w_setWheelMotor(
  int jointHandle,
  double speed,
  double maxTorque,
  int enable,
);