Polarith AI
1.8
AIMSimpleController2D Class Reference

Description

A very simple and basic character controller component suitable for the use in 2D projects.

Its purpose is to show the direct output of the movement AI algorithms for debugging, whereby it rotates the up vector of the agent towards the direction decided by the AI and translates along. Furthermore, it is assumed that the character moves in parallel to the x/y-plane. Requires an AIMContext component. If Context is null, this controller attempts to get these components in the OnEnable method. If they are still null, the controller is disabled.

For debugging purposes, this component is acceptable, but for production, you should definitely implement your own character controller which matches your application or game best.

Only one single component can be attached to one GameObject at a time.

Inheritance diagram for AIMSimpleController2D:

Public Fields

float Speed = 1f
 Determines the base value specifying how fast the character moves. More...
 
int ObjectiveAsSpeed = -1
 If set equal to or greater than 0, the evaluated AI decision value is multiplied to the Speed. More...
 
AIMContext Context
 The AIMContext which provides the next movement direction that is applied to the agent's Transform. More...
 
Imprint