Timeline for Tilting a game object left/right/forward/back with gyroscope, regardless of player's heading
Current License: CC BY-SA 4.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 8, 2019 at 3:24 | comment | added | airvine | +1 That worked, thank you so much! I'd upvote your answer, but my reputation is too low. | |
Nov 8, 2019 at 3:24 | vote | accept | airvine | ||
Nov 8, 2019 at 3:10 | comment | added | DMGregory♦ | You can use the same Asin technique for both if you like — it'll just give you a somewhat narrower range of pitch and you may need to manually adjust it when playing mostly-horizontal vs mostly-vertical. Re: gravity, feel free to use it if it works for you. | |
Nov 8, 2019 at 3:07 | comment | added | airvine |
Pitching the phone forwards and backwards in any direction appears to produce the correct results, but rolling from left to right changes both the roll and pitch. How would I fix this? Also wouldn't it be more efficient to use Input.gyro.gravity ? @DMGregory
|
|
Nov 7, 2019 at 17:51 | history | answered | DMGregory ♦ | CC BY-SA 4.0 |