freeze y-axis on (camera-) attached object

Hi,

I have a trolley/cart attached to my camera. When I walk the trolley follows (which is good^^). But when I pan the view the trolley gets panned with the cam. This is good for the x-axis (as I need it like that). But when I look up and down I want the trolley not to follow that movement. It should rather stay at the horizontal level...

Can somebody help? Thanks and Regards

JF

you probably don't want your cart to be attached to the camera object. The simplest way would be to write a script which gets the rotation of the camera and rotates the cart appropriately. That way you can simply ignore the rotation around the x-axis (i.e. looking up or down).