entity

package
v0.0.0-...-28fb5cd Latest Latest
Warning

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

Go to latest
Published: May 8, 2017 License: Apache-2.0 Imports: 3 Imported by: 14

Documentation

Overview

Package entity provies interfaces for game objects.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collider

type Collider interface {
	Pos() mgl32.Vec3
	Bounds() shapes.Shape
}

Collider ...

type Collision

type Collision struct {
	Hit Collider
	Dir mgl32.Vec3
}

func Collide

func Collide(target Collider, group *[]Collider, cleanup bool) (hits []Collision)

Collide target with all enttities in group, returning all hits. If cleanup is true hits are also removed from the group.

type Drawer

type Drawer interface {
	Pos() mgl32.Vec3
	Draw()
}

Drawer ...

type Entity

type Entity interface{}

Entity ...

type Updater

type Updater interface {
	Update(dt float32, group *[]Entity)
}

Updater ...

Jump to

Keyboard shortcuts

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