b2w_createWheelJoint 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_createWheelJoint(
  1. int worldHandle,
  2. int bodyA,
  3. int bodyB,
  4. double anchorX,
  5. double anchorY,
  6. double axisX,
  7. double axisY,
)

A wheel: bodyB turns freely about the anchor and moves on a spring along the axis (suspension; 4 Hz, damping ratio 0.7 until b2w_setWheelSpring).

Implementation

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