33 public virtual void Update(
float dt) {
42 m_stareRange = valuesDictionary.GetValue<
float>(
"StareRange");
97 m_componentCreature.ComponentCreatureModel.LookAtOrder =
m_target.ComponentCreatureModel.EyePosition;
113 if (componentCreature !=
null) {
116 result = componentCreature;
ComponentBody ComponentBody
ComponentCreature m_componentCreature
virtual void Update(float dt)
override float ImportanceLevel
SubsystemTime m_subsystemTime
ComponentCreature m_target
virtual ComponentCreature FindTarget()
override void Load(ValuesDictionary valuesDictionary, IdToEntityMap idToEntityMap)
virtual float ScoreTarget(ComponentCreature componentCreature)
ComponentPathfinding m_componentPathfinding
DynamicArray< ComponentBody > m_componentBodies
SubsystemBodies m_subsystemBodies
StateMachine m_stateMachine
ValuesDictionary ValuesDictionary
Component FindComponent(Type type, string name, bool throwOnError)
static Vector3 Normalize(Vector3 v)
static float Distance(Vector3 v1, Vector3 v2)