Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [gyroscope]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
74 views

Ignoring global rotation in gyroscope controller

I'd really appreciate some advice from you guys. I am trying to process a gyroscope input and map it to my game, i.e. player tilts their device and the character on screen moves left and right. ...
Cato's user avatar
  • 93
0 votes
1 answer
96 views

Smartphone tilt calculation when using gyroscope in Unity (smartphone moving problem)

I have been trying for several days now to set up the correct behavior of the gyroscope in Unity. I want to make it so that when the smartphone is tilted, the object tilts along the z-axis. I found ...
Operator's user avatar
2 votes
0 answers
841 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 ...
Cato's user avatar
  • 93
0 votes
0 answers
261 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 ...
Robotex's user avatar
  • 251
0 votes
0 answers
1k 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?
Robotex's user avatar
  • 251
0 votes
1 answer
287 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 ...
TaengGuRiMon's user avatar
0 votes
0 answers
358 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). ...
Brandon's user avatar
0 votes
1 answer
370 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 ...
erik's user avatar
  • 1,378
0 votes
1 answer
2k 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. ...
airvine's user avatar
  • 103
-1 votes
0 answers
38 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 ...
Petrit's user avatar
  • 1
0 votes
1 answer
2k 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 ...
Petrit's user avatar
  • 1
1 vote
1 answer
3k 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, ...
TheCell's user avatar
  • 93
1 vote
0 answers
157 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 ...
GuardFromUA's user avatar
0 votes
2 answers
1k views

Gyroscope scrolling using Input.gyro.eulerAngles.x reverses direction at 90°

I am working on a project where I want to create a 'scrolling' effect using the gyroscope on mobile devices. The basic idea is that I have an Image object in my ...
h4rd4r7c0r3's user avatar
0 votes
1 answer
53 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 ...
Kayumiy's 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 ...
Muhammad Faizan Khan's user avatar