Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RocketEntity ¶
type RocketEntity struct { *ecs.BasicEntity *components.Position *components.Velocity *components.Acceleration *components.Mass // contains filtered or unexported fields }
RocketEntity represents a complete rocket with all its components
func NewRocketEntity ¶
func NewRocketEntity(world *ecs.World, orkData *openrocket.RocketDocument, motor *components.Motor) *RocketEntity
NewRocketEntity creates a new rocket entity from OpenRocket data
func (*RocketEntity) GetComponent ¶
func (r *RocketEntity) GetComponent(name string) interface{}
AddComponent adds a component to the entity
Click to show internal directories.
Click to hide internal directories.