jj_shape_cast function

  1. @Native<Int32 Function(Int64, Pointer<JPH_Shape>, Pointer<Float>, Pointer<Float>, Uint32, Int64, Uint32, Pointer<JJ_Hit>, Int32)>(ffi.Int64, ffi.Pointer<JPH_Shape>, ffi.Pointer<ffi.Float>, ffi.Pointer<ffi.Float>, ffi.Uint32, ffi.Int64, ffi.Uint32, ffi.Pointer<JJ_Hit>, ffi.Int32)>(isLeaf: true)
int jj_shape_cast(
  1. int world,
  2. Pointer<JPH_Shape> shape,
  3. Pointer<Float> pose,
  4. Pointer<Float> direction,
  5. int layerMask,
  6. int ignoreBody,
  7. int flags,
  8. Pointer<JJ_Hit> out,
  9. int capacity,
)

Sweeps shape from pose (px py pz qx qy qz qw) along direction.

Implementation

@ffi.Native<
  ffi.Int32 Function(
    ffi.Int64,
    ffi.Pointer<JPH_Shape>,
    ffi.Pointer<ffi.Float>,
    ffi.Pointer<ffi.Float>,
    ffi.Uint32,
    ffi.Int64,
    ffi.Uint32,
    ffi.Pointer<JJ_Hit>,
    ffi.Int32,
  )
>(isLeaf: true)
external int jj_shape_cast(
  int world,
  ffi.Pointer<JPH_Shape> shape,
  ffi.Pointer<ffi.Float> pose,
  ffi.Pointer<ffi.Float> direction,
  int layerMask,
  int ignoreBody,
  int flags,
  ffi.Pointer<JJ_Hit> out,
  int capacity,
);