movement

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConstrainType = reflect.TypeOf(Constrain{})

ConstrainType is the reflect.Type of Movement

Type is the reflect.Type of Movement

Functions

func System

func System(engine *gosge.Engine, gs geometry.Scale) error

System Create the Movement system

Types

type Constrain

type Constrain struct {
	Min geometry.Point // Min position that we could move
	Max geometry.Point // Max position that we could move
}

Constrain of the movement

type Movement

type Movement struct {
	Amount geometry.Point // Amount that we could move
}

Movement indicate how much we need to move

Jump to

Keyboard shortcuts

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