physics

package
v0.0.0-...-281f1f0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Physics

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

func New

func New(frameDuration time.Duration, tileSize, scale int) *Physics

func (*Physics) MoveObjects

func (p *Physics) MoveObjects(sceneMap interfaces.SceneMap, dt time.Duration)

func (*Physics) PathTo

func (p *Physics) PathTo(from, to pixel.Vec, sceneMap consts.LevelMap) []*pixel.Vec

Jump to

Keyboard shortcuts

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