S
S
Stalder2016-04-17 15:05:28
Physics
Stalder, 2016-04-17 15:05:28

unity. How to get data from the accelerometer without taking into account free fall acceleration?

You need to get device acceleration. I started looking for different sources, including a tutorial that uses native Android tools. There was an example when they got an acceleration without g, that is, if you leave the device motionless, then the program will give zeros, and not the ill-fated 9.8 m / s ^ 2 on one of the axes. But in Unity this was not found, the accelerometer readings are always displayed taking into account the acceleration of free fall. How to be?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Daniil Basmanov, 2016-04-17
@Stalder

Gyroscope.userAcceleration returns acceleration without gravity.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question