jj_raycast function
Casts a ray from origin along direction (whose length is the ray's). Hits bodies on layers in layerMask, except ignoreBody. Writes up to capacity hits, nearest first; returns how many.
Implementation
@ffi.Native<
ffi.Int32 Function(
ffi.Int64,
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_raycast(
int world,
ffi.Pointer<ffi.Float> origin,
ffi.Pointer<ffi.Float> direction,
int layerMask,
int ignoreBody,
int flags,
ffi.Pointer<JJ_Hit> out,
int capacity,
);