Skip to main content

bvh32_geometry_raycast

bvh32_geometry_raycast(result, bvh, vertices, vertex_offset, vertex_stride, indices, originX, originY, originZ, directionX, directionY, directionZ) ⇒ boolean

Kind: global function

ParamTypeDescription
resultSurfacePoint3
bvhBinaryUint32BVH
verticesArray.<number> | ArrayLike.<number>
vertex_offsetnumberUnless you're using an interleaved buffer of some kind, this will be 0
vertex_stridenumberUnless you're using an interleaved buffer, this should be 3
indicesArray.<number> | ArrayLike.<number> | undefinedif this is set to undefined - implicit indexing will be used
originXnumber
originYnumber
originZnumber
directionXnumber
directionYnumber
directionZnumber