Hey, I'm wondering if there's a function out there to set the length of an XNA framework Vector3, like in c++ it would just be VECTOR.setLength( x ). Either that or the basic math to do it manually would be nice :)
+4
A:
Normalize it and then multiply it by the desired length.
vec = Vector3.Normalize(vec) * length;
Foole
2009-10-21 02:00:59
Haha! Thank you!
Nasqueron
2009-10-21 02:12:52