# Vector hell!

This topic is 1983 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

Hello, this is the first time using Vectors, and I don't get the math behind them.

Here's my situation(3d Space):

Vector X

Vector Y

I want to get a third vector that goes from Vector X to Vector Y, and then I can just scale it myself. Halp.

##### Share on other sites
You should check out the youtube videos of BSVINO rodriguez (there are a few of them linked under articles, math)

##### Share on other sites

Y - X

Normalize the result so that you can scale it to a precise length afterwards. You can normalize a vector by dividing each component by the length of the vector. You can calculate the length of a vector as follows: sqrt(x*x + y*y + z*z), where x, y and z are the vector's components.

• ### What is your GameDev Story?

In 2019 we are celebrating 20 years of GameDev.net! Share your GameDev Story with us.

• 13
• 9
• 15
• 14
• 46
• ### Forum Statistics

• Total Topics
634056
• Total Posts
3015282
×