b2w_applyForce function

  1. @Native<Void Function(Int64, Float, Float)>(ffi.Int64, ffi.Float, ffi.Float)>()
void b2w_applyForce(
  1. int bodyHandle,
  2. double fx,
  3. double fy
)

Apply a force at the body's centre of mass, for the next step.

Implementation

@ffi.Native<ffi.Void Function(ffi.Int64, ffi.Float, ffi.Float)>()
external void b2w_applyForce(int bodyHandle, double fx, double fy);