b2w_setPrismaticMotor function

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

Drive a prismatic joint at speed (units per second) with up to maxForce (enable != 0), or turn the motor off.

Implementation

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