bvh32_geometry_raycast
bvh32_geometry_raycast(result, bvh, vertices, vertex_offset, vertex_stride, indices, originX, originY, originZ, directionX, directionY, directionZ) ⇒ boolean
Kind: global function
Param | Type | Description |
---|---|---|
result | SurfacePoint3 | |
bvh | BinaryUint32BVH | |
vertices | Array.<number> | ArrayLike.<number> | |
vertex_offset | number | Unless you're using an interleaved buffer of some kind, this will be 0 |
vertex_stride | number | Unless you're using an interleaved buffer, this should be 3 |
indices | Array.<number> | ArrayLike.<number> | undefined | if this is set to undefined - implicit indexing will be used |
originX | number | |
originY | number | |
originZ | number | |
directionX | number | |
directionY | number | |
directionZ | number |