Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Holding device in portrait mode does not work with accelerometer. #1

Closed
kevinnguy opened this issue Oct 10, 2013 · 3 comments
Closed

Comments

@kevinnguy
Copy link

I'm not very familiar with your code but what would have to be done to make this work? I like what you've done with this project, very awesome :)

@mayakraft
Copy link
Owner

Thank you. A couple quick searches and it looks like it might be easier to fix than I thought! I'll make this a priority.

CMAttitude from the CMMotionManager (for pitch, roll, and yaw) in portrait mode at 90* from horizon experiences gimbal lock http://en.wikipedia.org/wiki/Gimbal_lock. My non-solution was to nullify the accelerometer influence as it approached gimbal lock to avoid a frenetic camera.

@mayakraft
Copy link
Owner

implemented transform from (CMDeviceMotion*).attitude.rotationMatrix. works great!

@kevinnguy
Copy link
Author

It looks great!

mayakraft pushed a commit that referenced this issue Apr 29, 2016
free texture and coordinate data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants