physics

package
v0.0.0-...-706fec5 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2017 License: MIT Imports: 4 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 New

func New() *World

func (*World) Add

func (w *World) Add(body *body.Body)

func (*World) Bodys

func (w *World) Bodys() map[int64]*body.Body

func (*World) Contacts

func (w *World) Contacts() []*contact.Contact

func (*World) ReservedDelete

func (w *World) ReservedDelete(id int64)

func (*World) SetBodyPosition

func (w *World) SetBodyPosition(id int64, pos vector.Vector)

func (*World) SetGravity

func (w *World) SetGravity(gravity vector.Vector)

func (*World) Tick

func (w *World) Tick(delta float64)

Directories

Path Synopsis
math

Jump to

Keyboard shortcuts

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