MoveBehaviour is the abstract base class for all the behaviours in the Move module of Polarith AI (back-end class).
It is derived from CriteriaBehaviour. In addition, it holds a reference for quick access to the associated Context so that every MoveBehaviour is able to obtain all the necessary information for writing/modifying objective values in the corresponding Context.Problem.
This class also defines and implements additional mechanics for manipulating objective values. The methods MapBySensitivity(MappingType, Structure, Vector3, float) and WriteValue are designed to support this process.
A MoveBehaviour can be marked as thread-safe in its corresponding front-end class through setting AIMBehaviour.ThreadSafe to true
. If you do this, be sure not to use reference types of the Unity scripting API and not to make any possibly unsafe variable writes. If at least one behaviour is not marked AIMBehaviour.ThreadSafe, the whole agent will not be part of the multithreading (Pro only).
Base back-end class of every derived AIMBehaviour.
|
float | MapBySensitivity (MappingType mapping, Structure structure, Vector3 direction, float sensitivityOffset=0.0f) |
| Maps (magnitude) values by sensitivity so that the Structure.Sensitivity (plus the given sensitivityOffset ) is used as similarity threshold for the angle between the given direction and the Structure.Direction. More...
|
|
float | MapBySensitivityPlane (MappingType mapping, Structure structure, Vector3 planeDirection1, Vector3 planeDirection2, float offset, float sensitivityOffset=0.0f) |
| Maps (magnitude) values by sensitivity so that the Structure.Sensitivity (plus the given sensitivityOffset ) is used as similarity threshold for the smallest angle between a plane defined by planeDirection1 , planeDirection2 and the Structure.Direction. More...
|
|
void | WriteValue (ValueWritingType valueWriting, int objectiveIndex, int valueIndex, float value, bool intermediate=false) |
| Writes objective values to the Context.Problem as specified with valueWriting . More...
|
|
void | BlendValues (LayerBlendingType layerBlending, int objectiveIndex) |
| Writes the values of the intermediate to the actual Context.Problem. More...
|
|