Documentation ¶
Overview ¶
The steer package contains steering behaviors for autonomous movement.
Concepts: - Target - Selector
Behaviors - Match velocity = given a query around the subject and all applicable entities, try to match their velocity magnitude - Alignment = given a query around the subject - Cohesion -
Accumulators
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CustomData ¶
type CustomData struct { Definition *CustomDataDefinition Ints []int Bools []bool Floats []float32 Strings []string }
func NewCustomData ¶
func NewCustomData(def *CustomDataDefinition) CustomData
func (*CustomData) Bool ¶
func (cd *CustomData) Bool(name id.Identifier) *bool
func (*CustomData) Float ¶
func (cd *CustomData) Float(name id.Identifier) *float32
func (*CustomData) Int ¶
func (cd *CustomData) Int(name id.Identifier) *int
func (*CustomData) String ¶
func (cd *CustomData) String(name id.Identifier) *string
type CustomDataDefinition ¶
type CustomDataDefinition struct { Name id.Identifier Properties id.SparseMap[CustomDataProperty, uint16] Counts []int }
func NewCustomDataDefinition ¶
func NewCustomDataDefinition(name id.Identifier) *CustomDataDefinition
func (*CustomDataDefinition) Add ¶
func (def *CustomDataDefinition) Add(name id.Identifier, dataType CustomDataType)
func (*CustomDataDefinition) New ¶
func (def *CustomDataDefinition) New() CustomData
type CustomDataProperty ¶
type CustomDataProperty struct { Name id.Identifier Type CustomDataType TypeIndex int }
type CustomDataType ¶
type CustomDataType int
const ( CustomDataTypeInt CustomDataType = iota CustomDataTypeBool CustomDataTypeFloat CustomDataTypeString CustomDataTypeCount )
type ForceGenerator ¶
type ObjectSource ¶
type ObjectSource interface {
GetObject() Object
}
type SubjectSource ¶
type SubjectSource interface {
GetSubject() Subject
}
type Typ ¶
type Typ struct {
Name id.Identifier
}
Click to show internal directories.
Click to hide internal directories.