Documentation ¶
Index ¶
- Constants
- type Bullet
- type Ship
- func (s *Ship) Draw(_ *pixelgl.Canvas, imd *imdraw.IMDraw)
- func (s *Ship) FixedUpdate()
- func (s *Ship) Health() int
- func (s Ship) Lerp(to shipPhysics, delta float64) shipPhysics
- func (s *Ship) Position() pixel.Vec
- func (s Ship) Step(dt float64) shipPhysics
- func (s *Ship) Update(timestamp time.Time, table *flatbuffers.Table)
- type System
- type Updateable
Constants ¶
View Source
const ( InterpolationBackTime = 100 * time.Millisecond InterpolationConstant = 0.01 InterpolationBuffer = 10 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bullet ¶
type Bullet struct { ID entity.ID physics.TranslationalState // contains filtered or unexported fields }
func (*Bullet) FixedUpdate ¶
func (b *Bullet) FixedUpdate()
type Ship ¶
type Ship struct { ID entity.ID Thrusting bool Armed bool // contains filtered or unexported fields }
func (*Ship) FixedUpdate ¶
func (s *Ship) FixedUpdate()
type System ¶
type System struct {
// contains filtered or unexported fields
}
func (*System) Perceive ¶
func (s *System) Perceive(perception *downstream.Perception)
type Updateable ¶
Click to show internal directories.
Click to hide internal directories.