I added I few print statements to an experiment I was doing with SSK2, and I came across something interesting.
local vec = ssk.math2d.angle2Vector(angle, true) print("Before normalizing: ", vec.x, vec.y) vec = ssk.math2d.normalize(vec) print("After normalizing: ", vec.x, vec.y)
The output showed that the values were equal:
Before normalizing: 0.24868988716485 -0.96858316112863 After normalizing: 0.24868988716485 -0.96858316112863
Either I did something wrong here or there is another reason for normalizing vectors. What would that reason be? If anyone could explain, that would be great!
