Orientation problem ( blend included)

I have tried many different settings, so i figure i will ask here. Follow these steps so you can understand what i am looking for. Start the blend, you will see a house-like object with a steeple on top. Press the arrow key to make it go up, keep the arrow pressed so you can get the highest angle. Once you have about 40 degree angle or so turn the house left or right about 90 degrees Now you should see the side of the house (RED) which of course will be tilted
Here is what i can’t get to work When you turn the house i want it to automatically go so the steeple is pointing straight up so mo matter how many turns it is pointing straight up gradually. If i press up or down key it straightens up but i need it to do automatically. I can’t get it to do that.

Attachments

orient.blend (133 KB)

Disable on the motion actuator act3 and act4 the local rotation.

If i disable those act then it does not go up or down at an angle which is what i want. you are saying it can’t be done my way? There has to be a way of doing it. Maybe someone else will have an idea

digiman

There is a problem. You can not turn up or down if you make the z axis to look up all the time.

Here is a blend file…press "space "orient_edited.blend (138 KB)

I think now I know what you mean. If you want that the house only straightens up when you turn, then connect the left and right sensor to the or. Here is the blendfile.

Attachments

orient.blend (133 KB)