JPH_Shape_CastRay2 function

  1. @Native<Bool Function(Pointer<JPH_Shape>, Pointer<JPH_Vec3>, Pointer<JPH_Vec3>, Pointer<JPH_RayCastSettings>, Int32, Pointer<JPH_CastRayResultCallback>, Pointer<Void>, Pointer<JPH_ShapeFilter>)>(ffi.Pointer<JPH_Shape>, ffi.Pointer<JPH_Vec3>, ffi.Pointer<JPH_Vec3>, ffi.Pointer<JPH_RayCastSettings>, ffi.Int32, ffi.Pointer<JPH_CastRayResultCallback>, ffi.Pointer<ffi.Void>, ffi.Pointer<JPH_ShapeFilter>)>()
bool JPH_Shape_CastRay2(
  1. Pointer<JPH_Shape> shape,
  2. Pointer<JPH_Vec3> origin,
  3. Pointer<JPH_Vec3> direction,
  4. Pointer<JPH_RayCastSettings> rayCastSettings,
  5. int collectorType,
  6. Pointer<JPH_CastRayResultCallback> callback,
  7. Pointer<Void> userData,
  8. Pointer<JPH_ShapeFilter> shapeFilter,
)

Implementation

@ffi.Native<
  ffi.Bool Function(
    ffi.Pointer<JPH_Shape>,
    ffi.Pointer<JPH_Vec3>,
    ffi.Pointer<JPH_Vec3>,
    ffi.Pointer<JPH_RayCastSettings>,
    ffi.Int32,
    ffi.Pointer<JPH_CastRayResultCallback>,
    ffi.Pointer<ffi.Void>,
    ffi.Pointer<JPH_ShapeFilter>,
  )
>()
external bool JPH_Shape_CastRay2(
  ffi.Pointer<JPH_Shape> shape,
  ffi.Pointer<JPH_Vec3> origin,
  ffi.Pointer<JPH_Vec3> direction,
  ffi.Pointer<JPH_RayCastSettings> rayCastSettings,
  int collectorType,
  ffi.Pointer<JPH_CastRayResultCallback> callback,
  ffi.Pointer<ffi.Void> userData,
  ffi.Pointer<JPH_ShapeFilter> shapeFilter,
);