title: how to code simple motion tracking?
body: <p>I am making a sentry turret with servos and a paintball gun and need to implement real time motion tracing to make the gun shoot anything that moves. how can I code this(any good algorithms, books, tutorials)?  I want to make it myself and not use premade solutions.</p>