https://thecode.media/accurate-motion-tracking/