RAIN.Core.RAINAgent Class Reference

RAINAgent represents the primary interface between RAIN AI and Unity. More...

List of all members.

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.

Detailed Description

RAINAgent represents the primary interface between RAIN AI and Unity.


Constructor & Destructor Documentation

RAIN.Core.RAINAgent.RAINAgent ( )

Constructor.


Member Function Documentation

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.

Parameters:
mindTypesimple, 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.


Member Data Documentation

Determine whether the max encompasses the Y axis too.

avatar is the GameObject controlled by the AI

Max acceleration, when acceleration-based movement is used.

Max angular acceleration in degrees, when acceleration-based movement is used.

Max rotation in degrees (change in orientation per second)

Max speed the AI can move.

mind is the attached Mind component

Step up height to use for Kinematic operations and pathfinding.


Property Documentation

Agent RAIN.Core.RAINAgent.Agent [get]

Read-only accessor for the associated Agent.

PersonalityContext RAIN.Core.RAINAgent.Personality [get]

Read-only accessor for the agent personality.