Krock wrote:I don't get why you use vector.normalize() on player:get_look_dir().
Well, I thought it would fix the problem by improving accuracy.
Removing it, other the hand, didn't change anything.
From what I've seen in the codes, it looks like a precision error.
I thought that at first, but I've noticed something odd.
When you move sideways there's a regular skew downwards and then a jerk upwards
and the greater the skew the greater the error in the aiming system. But when
it jerks upward, the accuracy improves dramatically.
I just did a test with the camera fixed, after the last jog, at 270 degrees, and
none of the camera angles x, y, or z changed with sideways motion. That means
the height of the camera is changing and messing up the targeting system.
Hm. I don't see a way of fixing that since I cannot predict the changes in height.