# If Tilt or GetInputMotionState return 0

**URL:** <https://forums.unrealengine.com/t/if-tilt-or-getinputmotionstate-return-0/516389>\
**Category:** Mobile\
**Tags:** unreal-engine, Android\
**Created:** [April 6, 2022, 3:33pm UTC](https://forums.unrealengine.com/t/if-tilt-or-getinputmotionstate-return-0/516389 "2022-04-06T15:33:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![volvicTM](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@volvicTM](https://forums.unrealengine.com/u/volvicTM)\
**Post date:** [April 6, 2022, 3:33pm UTC](https://forums.unrealengine.com/t/if-tilt-or-getinputmotionstate-return-0/516389/1 "2022-04-06T15:33:28Z")

</div>

After a few annoying hours of googling with no luck, a few people can’t get sensor information from the function GetInputMotionState or delegate Tilt/gravity etc…

So the setting you need to enable:  
Project Settings \> Platforms \> Android \> Input and check the box “Allow IMU Sampling”. It should now return sensor information.

---

<div class="post-metadata">

**Author:** ![Sixdigitguy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sixdigitguy](https://forums.unrealengine.com/u/Sixdigitguy)\
**Post date:** [May 2, 2022, 12:45am UTC](https://forums.unrealengine.com/t/if-tilt-or-getinputmotionstate-return-0/516389/2 "2022-05-02T00:45:46Z")

</div>

Not all heroes wear capes

---

<div class="post-metadata">

**Author:** ![Finnnnn](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/finnnnn/32/586938_2.png) [@Finnnnn](https://forums.unrealengine.com/u/Finnnnn)\
**Post date:** [November 22, 2022, 3:19pm UTC](https://forums.unrealengine.com/t/if-tilt-or-getinputmotionstate-return-0/516389/3 "2022-11-22T15:19:04Z")

</div>

Thank you! It helps a lot!!!
