You can constrain an individual axis with the Aim constraint. For example you can have the child object only affected on its Y-axis.
To constrain an axis with the Aim constraint:
Except where otherwise noted, this work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License