Dive Board



Inverse the Roll

Inverse the Roll

by Loyalwater on Dec 1st, 2013 19:33 PM

Hi,

Im working with your unity plugin and its perfect. The Up down left right behavior is exactly how I want it to be. Im having some trouble with the roll though !!

If I hold my phone horizontally ( landscape mode) and rotate it clockwise, the scene rotates in the anti clockwise direction and vice versa. I believe this is normal behavior because I have seen the same behavior in some gyro games but I want to reverse this. I want to scene to rotate clockwise when I rotate the phone clockwise. Can you please tell me how I can achieve this? This behavior can be seen in the rollercoaster game on the android app store.

My dive googles are arriving on the 17th :) and I need to get my game working before that. Thank you.

Loyalwater

Posts: 2

Joined: 01.12.2013

dive-owner


Re: Inverse the Roll

by Stefan on Dec 6th, 2013 21:10 PM

Basically this is what the real world does. It stays still while you rotate, so if you rotate clockwise its the same as rotating the world anticlockwise.
If you want to reverse that it might be a fast way to get dizzy and get motion sickness. you might try to change one of the quaternion elements in OpenDiveSensor.cs from + to - you would have to try it out.

Stefan

Stefan

Posts: 129

Joined: 30.06.2013

dive-owner