b2w_createWeldJoint function

  1. @Native<Int64 Function(Int64, Int64, Int64, Float, Float)>(ffi.Int64, ffi.Int64, ffi.Int64, ffi.Float, ffi.Float)>()
int b2w_createWeldJoint(
  1. int worldHandle,
  2. int bodyA,
  3. int bodyB,
  4. double anchorX,
  5. double anchorY,
)

Weld the bodies together at the anchor, as they are now.

Implementation

@ffi.Native<
  ffi.Int64 Function(ffi.Int64, ffi.Int64, ffi.Int64, ffi.Float, ffi.Float)
>()
external int b2w_createWeldJoint(
  int worldHandle,
  int bodyA,
  int bodyB,
  double anchorX,
  double anchorY,
);