Dive Board



Detect magnet pull on Android

Detect magnet pull on Android

by MPixel on Aug 25th, 2014 00:14 AM

In the Google Cardboard app, the phone's magnet sensor is used to detect magnetic field changes in order to provide the user a way to "click".

How could this be accomplished in Unity, with the Dive plugin?

Google has a how-to here, except that it is for Java development with the Android SDK, not for Unity. https://developers.google.com/cardboard/get-started

MPixel

Posts: 1

Joined: 25.08.2014


Re: Detect magnet pull on Android

by mptp on Aug 25th, 2014 06:23 AM

Not possible at all. The Dive plugin doesn't take any information from the magnetometer, let alone run analysis to detect the signal change that the magnet-pull represents.
If you buy the plugin GyroDroid, you'll have access to the magnetometer. If you're determined enough, I'm sure you could develop your own signal analysis to detect the magnet pull. Not trivial though.

mptp

Posts: 6

Joined: 24.08.2014


Re: Detect magnet pull on Android

by pyratej on Aug 27th, 2014 06:06 AM

Ahoy, if anyone's interested, a good buddy of mine is putting together a package of Unity based Cardboard listeners and commands:

https://github.com/CaseyB/UnityCardboardTrigger

pyratej

Posts: 12

Joined: 27.08.2014


Re: Detect magnet pull on Android

by davidklayer on Oct 28th, 2022 12:01 PM

Uptomods is a website where you can find MOD APK games and apps. We believe in providing high quality and safe content for our users. All the apps and games on our website are properly tested and reviewed by our team of experts before they are made available for download.

We know that people love to play MOD APK games, but not everyone is aware of the risks associated with downloading them from unknown sources. That's why we have created Uptomods - a safe and reliable website where you can download MOD APK games without any worries.

We have a huge collection of popular MOD APK games and apps, so there's something for everyone. And if you're looking for something new to play, we add new MOD APK games and apps regularly, so make sure to check back often!

So what are you waiting for? Start browsing our collection of MOD APK games and apps now! And don't forget to tell your friends about us!

davidklayer

Posts: 3

Joined: 30.05.2022