Input Motion State is always 0

Hello,

I have issue with the blueprint input Motion state giving always 0 in every motion ( acceleration, gravity, rotation rates and tilt)

I tried using an blank 4.18 project and a blank 4.20 project with no success.

Do I need to turn on something or authorization for the App?

.

I’m using this tablet:

  • Galaxy Tab A (2016)

  • Android: 5.1.1

Using Sensor Box for Android I detect Accelerometer Sensor and it’s working in this App.

Accelerometer Sensor specification :

  • Name: K2HH Acceleration

  • Vendor: STM

  • Version: 1

  • Power: 0.13

  • Maximum range : 39.22

  • Resolution: 0.001197

Project link : https://drive.google.com/open?id=1-TmKEuek0aOmcPqRYEQxUF8z3UflCCuL

I have the same problem with all mobile devices. Works fine when I build the project in 4.16 version. Have you found any solution?

No, I simply moved to another game design :frowning:

Hi.

The Android device must have a magnetometer. If magnetometer is not present in the device, the input motion values are not calculated. This is happening in the lastest versions of the engine. To know if your device has a magnetometer, install a compass app on it. If there is not a magnetometer, the app will fail. If you need to get input motion values in devices without a magnetometer, the GameActivity.java template must be modificated. Take a look to this issue: Unreal Engine Issues and Bug Tracker (UE-59537)

Regards.

I don’t know if this is the case or not but there is a setting tucked away in
Project Settings > (Platforms) Android> (Input) Allow IMU Sampling

This is disabled by default for Optimization purposes if the App doesn’t require Accelerometer, Magnetometer or Gyroscope Inputs.

This can easily be missed since it is not listed in Input Settings section of Project Settings.

Hope this helps.

2 Likes

King, the real deal, the saviour. The man, the one and only! The guy that fixed my problem!!

1 Like