Get new vector based on angle of two vectors

Indeed! Both types are stored in the same data type as the elements are only 2-3 floats. The magnitude is then returned by calculating the length, using sqrt(xx, yy, z*z) (Pythagoras). Square root is a relatively expensive operation, so it’s redundant to calculate and store it for all vectors, and is only calculated when needed. It’s up to us to remember what type of value we’re working with when we’re getting and setting a vector. It could be both a location and vector at the same time, depending on what we’re up to.

I hope we’re not going too off-topic Vaei. It’s just for future reference if other users end up in your thread. Good luck with your project. :slight_smile: