Page 1 of 1

Vector3 .normalise() bug?

Posted: Sat Apr 13, 2013 2:43 pm
by mude
n1 = ((v2-v1).crossProduct(v3-v1)).normalise();

return me a vector where all the values are the same, bt they aren't in the original vector.

I normalized the vector myself and it works

Re: Vector3 .normalise() bug?

Posted: Sat Apr 13, 2013 3:10 pm
by bstone
normalise() updates the vector and returns vector's length before the normalization. You should use normalisedCopy() if you want a normalized copy instead.