You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there,
inside the method panHandler: there are two times when you use your method vectorFromScreenLocation:inAttitude: and you use the _offsetMatrix as the attitude parameter. This causes that when the device is turned 90º (like change from landscape to portrait or vice-versa) the pan gesture is inverted from vertical and horizontal motion (i.e. move the finger to the right and the image moves up). I was wondering if there's a reason why you use this matrix instead of the _attitudeMatrix as the attitude parameter. I have made this change and works fine but wanted to ask if there's a reason for that so my change could have some side effects.
PS Thank you very much for your work, this have saved me a lot of work
PPS I have solved the head tilt on my fork, still a little buggy on nadir and zenith but no tilted horizon. Will make pull request when I can stabilise nadir and zenith.
The text was updated successfully, but these errors were encountered:
@fruitcoder I just changed the parameter when the method is called.
I changed this lines inside the panHandler: touchVector = [self vectorFromScreenLocation:[sender locationInView:sender.view] inAttitude:_offsetMatrix];
and GLKVector3 nowVector = [self vectorFromScreenLocation:[sender locationInView:sender.view] inAttitude:_offsetMatrix];
Hi there,
inside the method
panHandler:
there are two times when you use your methodvectorFromScreenLocation:inAttitude:
and you use the_offsetMatrix
as the attitude parameter. This causes that when the device is turned 90º (like change from landscape to portrait or vice-versa) the pan gesture is inverted from vertical and horizontal motion (i.e. move the finger to the right and the image moves up). I was wondering if there's a reason why you use this matrix instead of the_attitudeMatrix
as the attitude parameter. I have made this change and works fine but wanted to ask if there's a reason for that so my change could have some side effects.PS Thank you very much for your work, this have saved me a lot of work
PPS I have solved the head tilt on my fork, still a little buggy on nadir and zenith but no tilted horizon. Will make pull request when I can stabilise nadir and zenith.
The text was updated successfully, but these errors were encountered: