Guide 1 Docs 2 Reference 3

Function of World

world.raycasts

n lines at once. rays holds six f64 a line (from x, y, z, to x, y, z); out gets one f64 a line: how far along it the first block is that stops it, or -1 for a clear line.

world.raycasts(rays: buffer, out: buffer, n: number)

Parameters

raysbufferrequired
outbufferrequired
nnumberrequired

Used in