Questions tagged [gyroscope]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
31 views

Tilting a game object left/right/forward/back with gyroscope, regardless of player's heading

I'm working on a mobile game in Unity and using the gyroscope to rotate an object along the x and y axes. ...
-1
votes
0answers
30 views

How can I convert Input.gyro.attitude into a float? [duplicate]

I am working on a VR project with a 360 video in it. I am trying to set the start rotation of the video to the same rotation as my phones. How can I convert ...
0
votes
1answer
72 views

Set the start orientation of the gyroscope to initial phone orientation

I am making a mobile VR project in Unity, and I have a 360-degree video that starts playing where I can look around using a VR headset. I am trying to set the start rotation of the video to the same ...
0
votes
0answers
17 views

Is it possible to use gyroscope to produce a parallax tilt effect in Unity 2D?

I want to produce a parallax tilt effect in my 2D game that i will start working on. before that i want to know is it possible to produce the parallax effect (same as iphone parallax background) in ...
0
votes
1answer
73 views

Unity Gyroscope orientation (attitude) “wrong”

I am using the Unity reference and example implementation here https://docs.unity3d.com/ScriptReference/Gyroscope.html I struggle to fix an orientation problem. When my phone lies flat on the ground, ...
1
vote
0answers
108 views

Gyro and swipe in Unity

How can I properly save rotation of the camera while swipe and pass it to transform.rotation = Quaternion.Slerp() start start Quaternion?Right now after I swiped Gyro get his transform.position and I ...
0
votes
1answer
524 views

Unity 2D Input.gyro eulerAngles X value strange behaviour

I am working on a project where I want to create an 'scrolling' effect using gyroscope on mobile devices. The basic idea is that I have an Image object in my ...
0
votes
1answer
36 views

Transformation movement by using Accelerometer data

Is It possible to make transformation movement by using Accelerometer data or Accel + Gyro ? as we know, we can make rotation by using Accel or Gyro data. However, how can we make transformation ...
1
vote
1answer
1k views

Gyroscope inaccuracy

I have this code which is rotating my camera object based on Gyro it is working fine ...