Quantcast
Channel: Questions in topic: "ios"
Viewing all articles
Browse latest Browse all 4709

How to transform local space to world GYRO space on ios?

$
0
0
I was trying to use gyroscope, but it doesnt works properly. So my idea is to transform local space of an object to gyroscope, it should work i hope. I know about public Vector3 TransformDirection(Vector3 direction); But how to do the same for gyroscope? If i change local to world space, will it automatically affect gyroscope ( i mean, is gyroscope behaviour based on world axis? ) P.s. I think i misunderstood how it works from first sight. I guess i need to transform World Space ( Gyroscope in this case ) to behave based on local space. It seems that gyroscope is shifted somehow. Ok, Red is as it SHOULD BE , but blue is AT IS NOW(roughly drawn, but you get the idea ). ![alt text][1] [1]: /storage/temp/54469-maxresdefault.jpg Also, the fun thing is that not regarding the fact i've set "Landscape Left" in both Unity and Xcode - when i turn iphone to Landscape Right - game doesn't change it's orientation, but AXIS DO. What the hell is with that gyroscope?

Viewing all articles
Browse latest Browse all 4709

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>