Use the 3 Points constraint to use the position of three objects to constrain the rotation of another object.
3 Points constraint
The 3 Points constraint requires the following objects:
An asset, model, or other object whose rotation is based on the position and movement of three source objects (Origin, Target, and Up).
An asset, model, or marker whose position affects the pivot point of the constrained object. You can specify the same asset, model, or marker as the Origin and the constrained object.
An asset, model, or marker whose position affects the rotation of the constrained object.
An asset, model, or marker whose position affects the roll of the constrained object.