Questions tagged [gyroscope]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
0 answers
102 views

Tilting device about one axis in any orientation using gyroscope sensor

I am developing a Unity game where I need to tilt an iOS device to steer a ship as it flies in a straight line. The steering should be consistently accurate in any orientation, e.g. if the player ...
user avatar
  • 33
0 votes
0 answers
76 views

Unreal Engine 4: The Motion axises values is always zero

I'm trying to add aiming by gyroscope to my game. In the controller's module I parsed gyro/accel data and get the processed axis values, that I send into engine: ...
user avatar
  • 231
0 votes
0 answers
57 views

How to use Kalman's Filter to remove gyroscope drift of PS5 DualSense gamepad?

Playstation's gamepad allows us to use gyroscope and accelerometer data but it has a small drift which leads to mouse cursor vibration. I think, we can combine gyroscope and accelerometer data into ...
user avatar
  • 231
0 votes
0 answers
105 views

What is the PS5 DualSense gyroscope and accelerometer values range?

I'm trying to implement aiming in shooter using gyroscope but I can't find the minimum and maximum value for each axis to normalize it to range (-1;1) What is the possible values range?
user avatar
  • 231
0 votes
1 answer
48 views

How to properly get the x-axis value among the data of the smartphone's gyro sensor in Unity

I want to load x, y, z data using the IMU sensor of the smartphone. Input_gyro_attitude_eulerAngles = Input.gyro.attitude.eulerAngles - Offset; // gyro angle ...
user avatar
0 votes
0 answers
115 views

How do I stop gyroscope-controlled camera from jittering when holding phone still?

I have here a simplified version of my gyro-controlled camera with a sensitivity modification (a side effect of increasing sensitivity is that the jitteriness is exacerbated). ...
user avatar
0 votes
1 answer
181 views

Controlling Unity 3D cube with remote gyroscope

This probably will go into conceptual things as well, but what I would like to do is take a Raspberry Pi (with a Sense Hat), transmit the gyro values to Unity, and effectively have a 1-1 realistic ...
user avatar
  • 1,368
0 votes
1 answer
898 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. ...
user avatar
  • 103
-1 votes
0 answers
35 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 ...
user avatar
  • 1
0 votes
1 answer
1k 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 ...
user avatar
  • 1
1 vote
1 answer
2k 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, ...
user avatar
  • 93
1 vote
0 answers
147 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 ...
user avatar
0 votes
2 answers
1k 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 ...
user avatar
0 votes
1 answer
40 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 ...
user avatar
1 vote
1 answer
2k views

Gyroscope inaccuracy

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