Adding a tail to the points
Let’s add a tail to our points! This is a nice addition to our current project to add detail and a dynamic feel to our bugs.
To add tails to our points, we will have to instance a curve line on each of our points. To do this, start by adding an Instance on Points node after the Simulation End node. Let’s also connect our Simulation End output into the Join Geometry node as well so we can see our points again.
For the instance input, we’ll choose a Curve Line node. Once we connect this node, we can see that a bunch of lines appear on our Icosphere object.
To align the lines in the direction the points, or bugs, are moving, we will need to perform some calculations. We’ll walk through those calculations in the subsequent section.
Calculating the direction vector
We can obtain the vector of where a point is going by saving the original position vector and subtracting it from the current position vector, as mathematically...