RAINAgent represents the primary interface between RAIN AI and Unity. More...
Public Member Functions | |
RAINAgent () | |
Constructor. | |
void | Start () |
Start() handler for the MonoBehavior Start event Initializes the agent. | |
void | Update () |
Update() handler for the MonoBehavior Update event Responsible for updating the world state of the AI from the avatar and calculating physics. | |
void | LateUpdate () |
LateUpdate() handler for the MonoBehavior LateUpdate event Responsible for processing Think and Act for the agent and applying physics requests back to the Avatar. | |
void | AdaptToParent (string mindType) |
AdaptToParent is used to auto-configure the current GameObject the RAINAgent is attached to and create default mind, path manager, and sensors. | |
Public Attributes | |
GameObject | avatar |
avatar is the GameObject controlled by the AI | |
Mind | mind |
mind is the attached Mind component | |
float | maxSpeed = 1f |
Max speed the AI can move. | |
float | maxAcceleration = 1f |
Max acceleration, when acceleration-based movement is used. | |
bool | ApplyMaxToYAxis = false |
Determine whether the max encompasses the Y axis too. | |
float | maxRotationRate = 180f |
Max rotation in degrees (change in orientation per second) | |
float | maxAngularAcceleration = 90f |
Max angular acceleration in degrees, when acceleration-based movement is used. | |
float | stepUpHeight = 0.5f |
Step up height to use for Kinematic operations and pathfinding. | |
Properties | |
Agent | Agent [get] |
Read-only accessor for the associated Agent. | |
PersonalityContext | Personality [get] |
Read-only accessor for the agent personality. |
RAINAgent represents the primary interface between RAIN AI and Unity.
RAIN.Core.RAINAgent.RAINAgent | ( | ) |
Constructor.
void RAIN.Core.RAINAgent.AdaptToParent | ( | string | mindType | ) |
AdaptToParent is used to auto-configure the current GameObject the RAINAgent is attached to and create default mind, path manager, and sensors.
mindType | simple, behaviortree |
void RAIN.Core.RAINAgent.LateUpdate | ( | ) |
LateUpdate() handler for the MonoBehavior LateUpdate event Responsible for processing Think and Act for the agent and applying physics requests back to the Avatar.
void RAIN.Core.RAINAgent.Start | ( | ) |
Start() handler for the MonoBehavior Start event Initializes the agent.
void RAIN.Core.RAINAgent.Update | ( | ) |
Update() handler for the MonoBehavior Update event Responsible for updating the world state of the AI from the avatar and calculating physics.
bool RAIN.Core.RAINAgent.ApplyMaxToYAxis = false |
Determine whether the max encompasses the Y axis too.
GameObject RAIN.Core.RAINAgent.avatar |
avatar is the GameObject controlled by the AI
float RAIN.Core.RAINAgent.maxAcceleration = 1f |
Max acceleration, when acceleration-based movement is used.
float RAIN.Core.RAINAgent.maxAngularAcceleration = 90f |
Max angular acceleration in degrees, when acceleration-based movement is used.
float RAIN.Core.RAINAgent.maxRotationRate = 180f |
Max rotation in degrees (change in orientation per second)
float RAIN.Core.RAINAgent.maxSpeed = 1f |
Max speed the AI can move.
mind is the attached Mind component
float RAIN.Core.RAINAgent.stepUpHeight = 0.5f |
Step up height to use for Kinematic operations and pathfinding.
PersonalityContext RAIN.Core.RAINAgent.Personality [get] |
Read-only accessor for the agent personality.