collider

package
v0.2.16 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2023 License: Apache-2.0 Imports: 11 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type C

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

func New

func New(db *database.DB, o O) *C

func (*C) Tick

func (c *C) Tick(d time.Duration)

Tick advances the world by one tick. During this execution, agents must not be modified by the user.

type O

type O struct {
	PoolSize int
}
var (
	// DefaultO provides a default set of options for setting up the
	// collider. The values here are tailored to an N = 1000 simulation, and
	// is dependent on a variety of factors, e.g. CPU count.
	DefaultO O = O{
		PoolSize: 24,
	}
)

Jump to

Keyboard shortcuts

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