hematite icon indicating copy to clipboard operation
hematite copied to clipboard

Position shift when looking straight up or down

Open fenhl opened this issue 9 years ago • 3 comments

When looking straight up or down, the position of the camera appears to shift forward by about 2 pixels.

fenhl avatar Feb 28 '15 23:02 fenhl

Pull request:

https://github.com/PistonDevelopers/hematite/pull/250

RichardlL avatar Dec 06 '15 18:12 RichardlL

Fixed by https://github.com/PistonDevelopers/hematite/pull/250

bvssvni avatar Dec 06 '15 18:12 bvssvni

Wrong fix, the problem is that camera.forward can have x and z equal to 0, i.e. looking straight up or down, which is... maybe not incorrect, but the camera still needs to always preserve a horizontal direction to be minecraft-like. Which would be the yaw, I believe. Extracting that and using it for the xz_forward offset #250 effectively removed should do the trick.

eddyb avatar Dec 07 '15 00:12 eddyb