I'm a little hazy when it comes to vectors, maybe some of you can shed some light on me. I'm trying to generate an axis based on 2 3D vectors. What I mean is, I want +Z to go down the vector +X to go to the right of it, etc. This is what I have so far:
And that about sums it up lol. I was thinking maybe a couple cross products could give me the data to work with, but I really don't know. If I can't get an axis to work with, what would I need to do to get a point to the right of the vector? Maybe this?Code:Vec3 Start, End, Final; Final = End - Start / |End - Start|; // Gives me the vector from Start->End
Anyone have a clue to what I'm talking about?Code:Final.x += 2.0f; //?