Improving accuracy of optical tracking system using dynamics