I have a particle system whereby strips, which are just 4-vector triangle strips, shoot out of a central location in a calculated direction. I would like the strips to be aligned with their direction of travel.
My strip has four vertices as you'd expect: 0,0,0 0,5,0 1,0,0 1,5,0 // [ 1 unit wide, 5 units long ]
I then have a direction it will be going in: Vector3 particleDirection; // Direction vector it's going to fly out in
So my challenge is to rotate those four points so that the little plane they form is aligned with its direction of travel. Right now, of course, they're just flat (orthogonal) to the Z plane.
I only need to do this once, as they can continue to fly once oriented in the right direction.
I'm guessing this is as simple as a matrix that translates it to the center, rotates it, and translates it back. But I'm too much of a noob to know how to get that rotation.