Module Formation_Controller
Functions for computing formations.
-
computeFormation (args)
-
Computes a formation for a unit.
Parameters:
- args
The `name`, `bounds`, `count`, and `position` to compute.
Returns:
A list of positions to use per mini-index.
Usage:
computeFormation({
name = '2-line',
bounds = {1, 1, 1},
count = 4,
position = {0, 0, 0},
})
-
_createDerpyBattleLineFormation (bounds, count, position)
-
Computes a list of positions to achieve a basic formation.
Parameters:
- bounds
{x, y, z} size of the unit leader model.
- count
Number of miniatures total in the unit.
- position
{x, y, z} position of the unit leader model.
Returns:
A list of positions/rotations to use per mini index.
See also:
Usage:
For example for 2 miniatures:
[U]
[L]
For 3:
[U]
[U]
[L]
For 4:
[U]
[U]
[U]
[L]
-
_create2LineFormation (bounds, count, position)
-
Computes a list of positions to achieve a 2-by-2 formation.
Parameters:
- bounds
{x, y, z} size of the unit leader model.
- count
Number of miniatures total in the unit.
- position
{x, y, z} position of the unit leader model.
Returns:
A list of positions/rotations to use per mini index.
See also: