b2w_moverCast function

  1. @Native<Float Function(Int64, Float, Float, Pointer<Float>, Int32, Float, Float, Float, Uint64, Uint64, Int64)>(ffi.Int64, ffi.Float, ffi.Float, ffi.Pointer<ffi.Float>, ffi.Int32, ffi.Float, ffi.Float, ffi.Float, ffi.Uint64, ffi.Uint64, ffi.Int64)>()
double b2w_moverCast(
  1. int worldHandle,
  2. double originX,
  3. double originY,
  4. Pointer<Float> points,
  5. int pointCount,
  6. double radius,
  7. double translationX,
  8. double translationY,
  9. int categoryBits,
  10. int maskBits,
  11. int ignoreBody,
)

How much of translation the mover can travel before it touches something, from 0 to 1 (1: all of it). What it touches at the start does not stop it, and a chain stops it only from the chain's front.

Implementation

@ffi.Native<
  ffi.Float Function(
    ffi.Int64,
    ffi.Float,
    ffi.Float,
    ffi.Pointer<ffi.Float>,
    ffi.Int32,
    ffi.Float,
    ffi.Float,
    ffi.Float,
    ffi.Uint64,
    ffi.Uint64,
    ffi.Int64,
  )
>()
external double b2w_moverCast(
  int worldHandle,
  double originX,
  double originY,
  ffi.Pointer<ffi.Float> points,
  int pointCount,
  double radius,
  double translationX,
  double translationY,
  int categoryBits,
  int maskBits,
  int ignoreBody,
);