front-end / back-end: AIMFormationLine
| FormationLine
inherits from: AIMFormation
| Formation
Source code available on GitHub.
This behaviour arranges the agent as part of a formation with the shape of a line. You can find the source code in our GitHub repository.
Similar to our other formation behaviours that are based on AIMFormation
, Formation
, respectively, the position is based on the properties of the base class, as shown in Figure 1.
Figure 1: Shows the line formation.
This component has got the following specific properties.
Property | Description |
---|---|
Up Vector | Defines the default axis for the width of the formation, i.e., you can flip the reference direction in which the formation is built. If set to [0,0,0], the XY-plane is used, and the Z-axis is up. |
This formation serves as an example of the most simple formation. We published the source code in our GitHub repository so that you can see the basic mechanics for implementing a custom formation.