entities

package
v0.0.0-...-57fb5ef Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2025 License: GPL-3.0 Imports: 4 Imported by: 0

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

Jump to

Keyboard shortcuts

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