projectile

package
v0.4.1 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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Validate added in v0.2.0

func Validate(o O) bool

Types

type O

type O struct {
	Position       vector.V
	TargetPosition vector.V
	Velocity       vector.V
	TargetVelocity vector.V
	Heading        polar.V
	Radius         float64
	Flags          flags.F
	Team           team.F
}

type P

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

func New

func New(o O) *P

func (*P) AABB

func (p *P) AABB() hyperrectangle.R

func (*P) Flags

func (p *P) Flags() flags.F

func (*P) Heading

func (p *P) Heading() polar.V

func (*P) ID

func (p *P) ID() id.ID

func (*P) Position

func (p *P) Position() vector.V

func (*P) Radius

func (p *P) Radius() float64

func (*P) SetHeading

func (p *P) SetHeading(v polar.V)

func (*P) SetID

func (p *P) SetID(x id.ID)

func (*P) SetPosition

func (p *P) SetPosition(v vector.V)

func (*P) SetTargetPosition added in v0.3.2

func (p *P) SetTargetPosition(v vector.V)

func (*P) SetTargetVelocity

func (p *P) SetTargetVelocity(v vector.V)

func (*P) SetVelocity

func (p *P) SetVelocity(v vector.V)

func (*P) TargetPosition added in v0.3.2

func (p *P) TargetPosition() vector.V

func (*P) TargetVelocity

func (p *P) TargetVelocity() vector.V

func (*P) Team added in v0.3.6

func (p *P) Team() team.F

func (*P) Velocity

func (p *P) Velocity() vector.V

Jump to

Keyboard shortcuts

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