I'm working on a particle field system, where the particles can go from a point of the map, to another point of the map, using an angle (with sin and cos).
By now, I can calculate the vector by defining an angle using the cos and sin
float X = sin(DEGREES_TO_RADIANS(45)); float Y = cos(DEGREES_TO_RADIANS(45));
That forms a trajectory, like in this image: (Trajectory in red)
I need the particle to follow that trajectory, to move over that trajectory and arrive to the the vector (X,Y).
How can I translate the object ONLY over the red trajectory?