Vector3f.UNIT_Y = (0,1,0)
Vector3f.UNIT_Y.negateLocal() = (0,-1,0)
Problem I am having is… how did it get from 1 to -1?
Is it being rotated around another axis? Probably not… /sigh
However, if I wanted to adjust (rotate) a directional vector to point what is currently Y 360 degrees in small increments… how would I accomplish this properly? Rotate x of the vector? or?
Actually… let me just ask. How do you properly rotate a directional vector?
To your first part, you’ve corrupted the UNIT_Y vector in the second line by using negateLocal().
negate just multiples the vector by -1… which is guaranteed to point in the opposite direction.
If you want to rotate a directional vector, create a quaternion and multiply the vector with the quaternion. Or I’m missing something.
1 Like
@pspeed said:
To your first part, you've corrupted the UNIT_Y vector in the second line by using negateLocal().
negate just multiples the vector by -1... which is guaranteed to point in the opposite direction.
If you want to rotate a directional vector, create a quaternion and multiply the vector with the quaternion. Or I'm missing something.
Thanks... you answered my question. I was approaching this bass-ackwards. This makes sense. MOST appreciated.