I’m trying to figure out how to rotate a vector so that the ‘z’ is aligned to the ‘z’ of the local space.

I’m pretty bad at vector math, so I have no idea where to go.

[editline]a[/editline]

It’s a little hard to properly convey exactly what I want.

I want to modify two axes of the vector, but leave the last one intact, but this has to work at any angle.