- Home /
Gyroscope.userAcceleration returning zero
gyro is enabled
Input.gyro.enabled = true;
and the device supports gyroscope [ Android ]
gyro attitude and rotation rate are giving me correct values , except the user acceleration which is always returning " 0 "
anyone help ?
userAcceleration - Input.gyro.userAcceleration
detects the linear acceleration of a device (e.g. how fast it is moving on either the x, y, or z direction. I have used this before to create a form of movement, however, the way it works, is that is spikes when moving, but goes into negative values when movement is stopped, until it equals 0. $$anonymous$$aybe that might be cancelling out your return values for userAcceleration. Some more code could help me understand why that is happening. @TigrisGames
Your answer
Follow this Question
Related Questions
[Roll a Ball] How do I control the ball with the gyroscope/accelerometer? 2 Answers
Detect Gyroscope's rotation around a single axis? Like a car game. 0 Answers
Unity3D cross-platform input wireless 1 Answer
Accelerometer or Gyroscope for movement? 0 Answers
[Accelerometer] Problem with the Reference code Snippet 0 Answers