I'd like to animate an object moving over a surface and have the object positioned so it follows the slope (normal) of the surface.
Using a shrinkwrap constraint, the object will follow the change in height of the surface.
However, it is not clear how to make the cone follow both the height and slope (normal). In the image below, the red cone shows the desired orientation of the white cone at one point in time.
How can the cone in the animation be animated to follow both the height and slope (normal) of the surface?
Sample blend file here
Using the solution from Lukas, and making sure scaling was applied to the objects, this is the result!