asteroid

package
v0.0.0-...-1050381 Latest Latest
Warning

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

Go to latest
Published: May 7, 2017 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Small
	Medium
	Large
)

Variables

View Source
var Mesh mesh.Mesh

Functions

func SetMesh

func SetMesh(m mesh.Mesh)

Types

type Asteroid

type Asteroid struct {
	model.Model
	Velocity      mgl32.Vec3
	RotationSpeed mgl32.Quat
}

func New

func New() *Asteroid

func (*Asteroid) Split

func (a *Asteroid) Split() (*Asteroid, *Asteroid)

func (*Asteroid) Update

func (a *Asteroid) Update(deltaSeconds float32)

Jump to

Keyboard shortcuts

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