b2w_createPrismaticJoint function

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

A slider: bodyB moves along the axis through the anchor, and the two do not turn against each other.

Implementation

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