Spo Assignment to Fan Selection
Think of the fan as a grid that got pinched at the bottom.
For row column flashing to work properly on a fan all that matters is getting 2 things right.
- SPO indices on thefan objects start at 0 and go to N - 1 where N is the number of SPOs and that the first row contains 0 to n_columns - 1 and so on and so forth.
- The numMatrixRows and numMatrixColumns in P300ControllerBehavior match the size of the fan. To do this something in the setup of the fan will have to tell the Boccia Application Model which will tell the P300Controller behavior.
Because of this, I think it makes sense to create the fan, by duplicating, scaling, shifting a SPO prefab, rather than assigning SPO properties to fan objects later. This is because in that case, to put the SPO indices on the right SPOs, the fan objects would have to know what row/column they are apart of.