head lookAt controller

I’m using the head lookAt script from the unity example on my own rig but getting strange results. I’m using the head look at value as -1 on X and the head up vector as 1 on Y. The rest of the values are the same as the sample. However the result I’m getting is the head spinning very quickly. Is there any documentation for this script? Thanks!

It seems you need an animation playing on the character for it to work properly. In my test I had no animations and it freaked out. So far so good.

Check out the Smooth Look At Constraint in UnityConstraints (free - also in the asset store).

We’d love any feedback as well. Our forums are at http://support.path-o-logical.com/forums

I really will get some videos out soon…

You should be able to add the constraint component, set the options (shown in the docs here), then from your script just cache the component and set the constraint.position to any vector3 position in world space (or set constraint.target to any other object in the scene) and the constraint will look at it along any axis you want.

Thanks for the help I will check it out.