Playmaker Forum
PlayMaker Updates & Downloads => Share New Actions => Topic started by: jeanfabre on September 14, 2015, 04:02:36 AM
-
Hi,
It's been on my harddrive, but never released it... sorry :)
So here it is, an action get get all device gyroscope values, including gravity, attitude, etc.
you can install the action conveniently using the Ecosystem (http://j.mp/1Esn1mF)
GetDeviceGyroscope (https://github.com/jeanfabre/PlayMakerCustomActions_U4/blob/master/Assets/PlayMaker%20Custom%20Actions/Device/GetDeviceGyroscope.cs)
Unity help (http://docs.unity3d.com/ScriptReference/Gyroscope.html)
Bye,
Jean
-
Jean
I can't get any reading from any android device. I tried the "Get Device Info" action and confirmed that the devices have Accelerometer and Gyroscope.
I'm using Unity 5.3.5f1 and a Motorola Moto G 2nd gen and android 5.0.2
-
Hi,
How do you get the reading on device? the values are very small, so you may have to multiply it to see any effect, else to be totally sure, you should debug the actual values as a string in the UI so that you can see the real value, then you can start implementing features based on this.
Bye,
Jean
-
Hi,
One more thing. Try using Unity Remote, all data should be passed and so you can debug in Editor.
Bye,
Jean