Versions in this module Expand all Collapse all v1 v1.3.1 Dec 16, 2013 Changes in this version + const BoxShape + const NumShapes + const SphereShape + type Abox struct + Lx float64 + Ly float64 + Lz float64 + Sx float64 + Sy float64 + Sz float64 + func (a *Abox) Overlaps(b *Abox) bool + type Body interface + Data func() interface{} + Id func() uint32 + IsMovable func() bool + Push func(x, y, z float64) + Rest func() + SetData func(data interface{}) + SetMaterial func(mass, bounciness float64) Body + SetShape func(shape Shape) + SetWorld func(world *lin.T) + Speed func() (x, y, z float64) + Stop func() + Turn func(x, y, z float64) + Whirl func() (x, y, z float64) + World func() *lin.T + func NewBody(shape Shape) Body + type Mover interface + SetGravity func(gravity float64) + SetMargin func(margin float64) + Step func(bodies []Body, timestep float64) + func NewMover() Mover + type Shape interface + Aabb func(transfrom *lin.T, ab *Abox, margin float64) *Abox + Inertia func(mass float64, inertia *lin.V3) *lin.V3 + Type func() int + Volume func() float64 + func NewBox(hx, hy, hz float64) Shape + func NewSphere(radius float64) Shape + type World interface + Add func(body Body) + Rem func(body Body)