physics

package
v0.0.0-...-9c16532 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entity

type Entity interface {
	FixedUpdate()
}

type RotationalState

type RotationalState struct {
	Angle           float64
	AngularVelocity float64
}

func (RotationalState) Lerp

func (RotationalState) Step

type System

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

func New

func New() *System

func (*System) Add

func (s *System) Add(id entity.ID, e Entity)

func (*System) Remove

func (s *System) Remove(e entity.ID)

func (*System) Update

func (s *System) Update(float64)

type TranslationalState

type TranslationalState struct {
	Position cp.Vector
	Velocity cp.Vector
}

func (TranslationalState) Lerp

func (TranslationalState) Step

Jump to

Keyboard shortcuts

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