simulation groups custom float
#2
Thank you, specific particle IDs starting at 1 is a bug that will be fixed in the next build.

As for particle groups, they are flags set on an unsigned 16 bit integer. Each flag corresponds to a bit set. So, in binary, group 1 would be:

Code:
0000000000000001

and group 2 would be:

Code:
0000000000000010

And so on...

However, the conversion of those bits into a readable integer is not intuitive...so it's best to remember that groups are toggled bitflags when working with them directly. Group X is not the number X assigned to the particle's group property, but instead the Xth bit (from the right) toggled on on the 16-bit group integer. You are seeing groups 1 and 2 displayed when you assign the number 3, because

Code:
0000000000000011

in decimal form is 3.
  Reply


Messages In This Thread
simulation groups custom float - by usc001 - 12-15-2022, 08:10 PM
RE: simulation groups custom float - by tyFlow - 12-15-2022, 08:59 PM
RE: simulation groups custom float - by usc001 - 12-15-2022, 09:52 PM

Forum Jump: