Class Consideration
A scriptable object with a method GetScore returning a value between 0-1, this score is used by UtilityPlanner to determine if an action should be considered or not.
Think of this as a question "How Hungry am I?" 1 = Hungry, 0 = Not Hungry.
Inheritance
Consideration
Assembly: UtilityAIFramework.dll
Syntax
public abstract class Consideration : ScriptableObject
Fields
Description
Declaration
public string Description
Field Value
ResponseCurve
Declaration
public AnimationCurve ResponseCurve
Field Value
Type |
Description |
AnimationCurve |
|
Methods
GetScore(Agent, IUtilityAction)
Declaration
public abstract float GetScore(Agent agent, IUtilityAction action)
Parameters
Returns
GetSimulatedScore(Single)
Used in Editor view to get a simulated score. Helpful for understanding what these curve responses actually output.
Declaration
public virtual float GetSimulatedScore(float value)
Parameters
Type |
Name |
Description |
Single |
value |
|
Returns