I am using the 2D Grid Macro to spawn a grid of vertical cylinders Blueprints, where each of them has another 2D Macro to spawn another Blueprint of a light-cube,
Now I am using a timeline to turn the light cubes on/off in various ways.
I made sure to catalog each Blueprint with its relative position (I think), my current goal is to light up the cubes from inwards outwards,
So I have to calculate for each lightcube Blueprint its relative position in the on-off timeline. For some patterns it’s easy to calculate like up-down or left-right,
but to calculate inwards/outwards I am a bit stuck.
Is there an efficient way to calculate this?
My controls are
1- Tube amount (equal x/z tubes)
2- Light Cube amount (spawns on the Y axis)
Sounds perfect actually, how would one use that in this case?
My timeline is 1 second, so I will need to calculate the distance and turn that into a relative position from 0-1 where 0 is the closest to the center, 1 is the furthest?