Contents

group::elementIndexInGroup

Returns the index of the current element within its group.

Declaration

int group::elementIndexInGroup()

Return Value

The zero-based index of the current element within its group

Discussion

Use this function to identify which particle within the group is being processed, allowing you to create unique behaviors for different particles in the same group.