Versions in this module Expand all Collapse all v1 v1.0.1 Jul 30, 2026 v1.0.0 Jul 30, 2026 Changes in this version + func BBoxIntersects(bb cube.BBox, start, end mgl64.Vec3) bool + func BlockIntersects(pos cube.Pos, src world.BlockSource, b world.Block, start, end mgl64.Vec3) bool + func TraverseBlocks(start, end mgl64.Vec3, f func(pos cube.Pos) (con bool)) + type BBoxResult struct + func BBoxIntercept(bb cube.BBox, start, end mgl64.Vec3) (result BBoxResult, ok bool) + func (r BBoxResult) BBox() cube.BBox + func (r BBoxResult) Face() cube.Face + func (r BBoxResult) Position() mgl64.Vec3 + type BlockResult struct + func BlockIntercept(pos cube.Pos, src world.BlockSource, b world.Block, start, end mgl64.Vec3) (result BlockResult, ok bool) + func (r BlockResult) BBox() cube.BBox + func (r BlockResult) BlockPosition() cube.Pos + func (r BlockResult) Face() cube.Face + func (r BlockResult) Position() mgl64.Vec3 + type EntityFilter func(iter.Seq[world.Entity]) iter.Seq[world.Entity] + type EntityResult struct + func EntityIntercept(e world.Entity, start, end mgl64.Vec3) (result EntityResult, ok bool) + func (r EntityResult) BBox() cube.BBox + func (r EntityResult) Entity() world.Entity + func (r EntityResult) Face() cube.Face + func (r EntityResult) Position() mgl64.Vec3 + type Result interface + BBox func() cube.BBox + Face func() cube.Face + Position func() mgl64.Vec3 + func Perform(start, end mgl64.Vec3, tx *world.Tx, box cube.BBox, filter EntityFilter) (hit Result, ok bool)