Documentation
¶
Index ¶
- 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
- type BlockResult
- type EntityFilter
- type EntityResult
- type Result
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BlockIntersects ¶
Types ¶
type BBoxResult ¶
type BBoxResult struct {
// contains filtered or unexported fields
}
func BBoxIntercept ¶
func (BBoxResult) BBox ¶
func (r BBoxResult) BBox() cube.BBox
func (BBoxResult) Face ¶
func (r BBoxResult) Face() cube.Face
func (BBoxResult) Position ¶
func (r BBoxResult) Position() mgl64.Vec3
type BlockResult ¶
type BlockResult struct {
// contains filtered or unexported fields
}
func BlockIntercept ¶
func BlockIntercept(pos cube.Pos, src world.BlockSource, b world.Block, start, end mgl64.Vec3) (result BlockResult, ok bool)
func (BlockResult) BBox ¶
func (r BlockResult) BBox() cube.BBox
func (BlockResult) BlockPosition ¶
func (r BlockResult) BlockPosition() cube.Pos
func (BlockResult) Face ¶
func (r BlockResult) Face() cube.Face
func (BlockResult) Position ¶
func (r BlockResult) Position() mgl64.Vec3
type EntityResult ¶
type EntityResult struct {
// contains filtered or unexported fields
}
func EntityIntercept ¶
func (EntityResult) BBox ¶
func (r EntityResult) BBox() cube.BBox
func (EntityResult) Entity ¶
func (r EntityResult) Entity() world.Entity
func (EntityResult) Face ¶
func (r EntityResult) Face() cube.Face
func (EntityResult) Position ¶
func (r EntityResult) Position() mgl64.Vec3
Click to show internal directories.
Click to hide internal directories.