world

package
v0.0.0-...-b8cd253 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 30, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type World

type World struct {
	// contains filtered or unexported fields
}

func NewWorld

func NewWorld(ctx *ctx.Context) *World

func (*World) Block

func (w *World) Block(pos Vec3) *block.Block

func (*World) BlockChunk

func (w *World) BlockChunk(block Vec3) types.IChunk

func (*World) Chunk

func (w *World) Chunk(id Vec3) types.IChunk

func (*World) Chunks

func (w *World) Chunks(ids []Vec3) []types.IChunk

func (*World) Collide

func (w *World) Collide(pos mgl32.Vec3) (mgl32.Vec3, bool)

func (*World) HasBlock

func (w *World) HasBlock(id Vec3) bool

func (*World) HitTest

func (w *World) HitTest(pos mgl32.Vec3, vec mgl32.Vec3) (*Vec3, *Vec3)

func (*World) UpdateBlock

func (w *World) UpdateBlock(id Vec3, tp *block.Block)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL