Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  radius of individual particles at runtime
#4
(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#.
Reply


Messages In This Thread
RE: radius of individual particles at runtime - by josemendez - 11-11-2021, 12:26 AM