simulation

package
v0.0.0-...-addf850 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type O

type O struct {
	Name        string
	Agents      []agent.O
	Projectiles []projectile.O
	Features    []feature.O
	Collider    collider.O
	Boids       boids.O

	EnableBoids bool

	MinX         float64
	MinY         float64
	MaxX         float64
	MaxY         float64
	TickDuration time.Duration

	NFrames int
}

func Unmarshal

func Unmarshal(data []byte) O

func (*O) Filename

func (o *O) Filename() string

func (O) Marshal

func (o O) Marshal() []byte

type S

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

func New

func New(o O) *S

func (*S) Execute

func (s *S) Execute() *gif.GIF

func (*S) Tick

func (s *S) Tick(d time.Duration)

func (*S) TickTimer

func (s *S) TickTimer() time.Duration

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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