Help: Track To actuator rotation

I’m sure we’ve all noticed the annoyingness of the Track To actuator flipping upside down.

I have a camera, tracking to an object, when the object moves in a certain direction, the camera quickley flips upside-down, along the local Z axis.

I think somehow, I need to freeze all rotation along the Local Z axis, it’s the only solution I have come up with. Does anybody know any way of constraining rotation on the Z axis, in either 2.43 RC1, or 2.42a?

Maybe there is another solution, either way, Any help on this is very apprieciated.

Thanks,
-Chaser

The best way I know of to constrain rotation on the z-axis is to add a rot IPO at frame 1 for the desired rotation (or whatever frame, really. I’m just using frame 1 for an example) and delete the x and y parts of it. Then set up an IPO actuator hooked to an always sensor to always play frame 1 of the animation.

As for your track to problem, can you tell when the flip occurs? I know of a bug that happens when the camera shares more than one coordinate with the object it is tracking (for example, camera x:0 y:0 z:10, object x:0 y:0 z:0 would produce a tracking error). If this is what is causing your problem, try offsetting the camera just a little bit on one coordinate.

Thanks for the reply Blendenzo.
I was starting to get lonely.

The flipping seems to occur… At least in my setup, when the object has the same X axis position as the camera.

I tried the IPO thing, it just skrewed up the tracking.

I’ll try the offsetting thing.