To change the pivot orienation is something for your 3D software. But you could make an empty inside of the target object. And orieantate that one to your needs. Then target at this empty instead of the parent.
Psymenator: Here's one way to implement what I was talking about. This can of course be altered and extended, but the upvector option should help illustrate how the "lookat" routine works, and you can adjust things and see how they change. using UnityEngine;using System.Collections;[ExecuteInEditMode]public class…
Hi all! I need some help with a simple LookAt script in Unity. I want just this rectangular cube to always point at a certain object. But it's not very easy for a new beginner. I'm quite experienced with graphics in Unity. Just not very good at scripting. And I need this for a job really bad. I started out by using this…
Thank you all for the answers :) It worked fine when I changed the name of the class to 'jointLookAt' and then the same for the script name. Because it's for rigging these bones and joints in different sorts of machines. The problem still is that it seem to point -90° at aside. Not directly towards the actually target.…
Ah, I love Gotheburg. One of the few cities I've visited outside of the U.S. A really great city for touring around on foot. Lower buildings, and lots of great parks. Very pretty architecture. A more laid-back feel compared to Stockholm. As to Unity, you are going to want to keep your transformations in local space. You…