11-11-2021, 12:26 AM
(11-11-2021, 12:11 AM)burspa Wrote: Ah thanks, I was using .Set and it didn't seem to work. But assigning a new Vector4 is working thanks!
That’s because vectors are structs (value types) so you cannot do this:
solver.principalRadii[index].Set(x,y,z,w);
As that would modify a temporary value. Same applies to any array of structs in C#.