This seems like such a simple request, but I can't find any reference to it anywhere. How do you auto-orient an object so that it faces along its motion path. I don't want to use a path object to create the path, I have a motion path that is defined through keyframes. How do I orient it so that it is always facing forward as it moves?
My thought is to use a driver on the Z rotation that finds the world position of the object 1 frame in the future, subtracts the current world position, and then uses basic trigonometry to work out the rotation necessary.
Unfortunately I don't know enough about the Blender API to be able to implement this, so anyone good at drivers, feel free to help me out.