I have a location vector that I want to manipulate in a way that I have a primary axist hat I run through one function and the other two remaining axis that are manipulated by another function.

My primary axis is dynamic. I get it by multiplying by location vector by another vector. For example (1, 0, 0) so I only manipulate the x-axis.

Where I’m stuck is is how to dynamically iterate over the remaining axises.

Is this even possible? Something like ForEach(Axis in Vector) {DO SOMETHING}

Thank you