neighbours

 

 

This operator finds closest neighbour particles to the input particle.

 

 

[Inputs]

 

#Particle Stream - This pin requires a particle stream to be connected.

 

Enabled - Enable or disable node evaluation.

 

Search Group - Neighbour particles are going to be located within this particle group.

 

Search Pool - Additional option to refine the neighbours search.

  • All - All particles from the Search Group will be searched as potential neighbours.
  • Same Cluster - Only particles from the Search Group that belong to the same cluster as input particle will be searched as potential neighbours.
  • Different Cluster - Only particles from the Search Group that does not belong to the same cluster as input particle will be searched as potential neighbours.

 

Search Type - Choose how particle will be searched.

  • N Search - Search for user defined number of closest particles to the input particle.
  • Radius Search - Search for user defined number of closest particles to the input particle that are located within a radius. This option provides additional parameters.

 

Output Type - Choose how output particles will be sorted.

 

Search Radius - Find only particles that are within specific distance from the input particle.

 

Search FOV - Find only particles that are within specific field of view from the input particle and direction.

 

Use Custom Dir - When searching for particles within the FOV a search direction will be taken from particle velocity. Enable this option if you want to specify search direction. In the case that Position input pin is connected custom direction will be always used.

 

Custom Dir - Custom search direction vector that is used then FOV is less than 360 degrees.

 

 

[Outputs]

 

Found - This output is true if any neighbour particle was found.

 

Particle - This output will contain input particle so you can pass it to other nodes.

 

Neighbours - This pin will output all the particles that are found for the particle that is currently on this input.

 

Count - Number of neighbour particle found.

 

Heading - Average direction of neighbouring particles retrieved from velocities.

 

Avg. Velocity - Average of neighbouring particles velocities.

 

Avg. Mass - Mass average of all neighbouring particles.

 

Center of Mass - This is the center of mass of all neighbour particles.