title: How to check if my ball stopped rolling?
body: <p>I want to check when my ball stopped rolling (moving) for more then 5 seconds and then execute some code. I'm working on an android game and sometimes the ball gets stuck, the ball should be moving constantly so I want to check if it's moving and if it's not I need to respawn it.</p>
  
  <p>What is the best way to do this?</p>