Automatic kinematic variable builder