Documentation
¶
Overview ¶
Package components provides a standard set of components for E2.
Index ¶
Constants ¶
View Source
const ( MaskName = wecqs.Component0 MaskGroup = wecqs.Component1 MaskPosition = wecqs.Component2 MaskVelocity = wecqs.Component3 MaskAcceleration = wecqs.Component4 MaskImpulse = wecqs.Component5 MaskRenderable = wecqs.Component6 )
Component mask constant.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Acceleration ¶
type Acceleration struct { Magnitude unit.Acceleration Direction r3.Vec }
Acceleration marks change in velocity in 3D space.
func (*Acceleration) Mask ¶
func (*Acceleration) Mask() uint64
type Impulse ¶
type Impulse struct { Magnitude unit.Acceleration Direction r3.Vec }
Impulse marks a single-frame change in velocity in 3D space.
type Renderable ¶
type Renderable struct { Hidden bool Order float64 Vertices []ebiten.Vertex Indices []uint16 Image *ebiten.Image Opts *ebiten.DrawTrianglesOptions }
func (*Renderable) Mask ¶
func (*Renderable) Mask() uint64
Click to show internal directories.
Click to hide internal directories.