Polarith AI
1.8
AIMLodGroup Class Reference

Description

Manages the AIMSensor instance which is currently attached to the game object's AIMContext component.

This is done based on the proximity relative to a given Center. The functionality can be compared to the LOD (level-of-detail) systems known from computer graphics (see LODGroup). Thus, it provides a great potential for improving runtime performance. In order to work properly, the AIMLodGroup needs at least a reference to a Center transform and a list of at least two entries in the contained Move.LodList. If the Center object is null, AIMLodGroup searches for a GameObject with the specified centerTag, whereby 'MainCamera' is the default.

Hint, in most cases, it is not necessary to update the (LOD) sensor in every update step. Thus, it is possible to use UpdateFrequency for avoiding unnecessary distance calculations in every update step.

Inheritance diagram for AIMLodGroup:

Public Fields

Transform Center
 The distance between the position of the Center and the position of this game object is used to determine the correct LOD AIMSensor. More...
 
float UpdateFrequency = 20.0f
 Specifies how often this component is updated. More...
 
bool DeactivateOnLast
 If true, the agent's AIMContext is disabled if its distance is greater than the furthest LOD distance. More...
 
LodList LodList = new LodList()
 Defines which AIMSensor should be used at a given distance. More...
 
Color LodColor1 = Colors.Red
 First iterative level-of-detail color. More...
 
Color LodColor2 = Colors.Orange
 Second iterative level-of-detail color. More...
 
Color LodColor3 = Colors.Yellow
 Third iterative level-of-detail color. More...
 

Properties

string CenterTag [get, set]
 If the 'Center' is null, a lookup for a proper 'Transform' is done using this tag. More...
 
Imprint