particle vectors

Now that we have animated particles, moving on sin waves, we can test each one to see how far away it’s neighbours are. In this example, we’ll use the PVec class again to check the distance (by finding the square root of the squares of each distance direction, x-y-z). Once we know the distance between two particles, we can use that to check if two are between an upper distance limit – if so, we’ll draw a line between them.Source Code

Related Posts:

  • frank

    This has a really nice movement to it.