I have this arrow: http://i.imgur.com/jr2VJbg.png?1 The parent is just an empty gameobject to fix the orientation since I when I imported the model its desired forward direction was in the y axis instead. I attached this script to the parent:
private Camera camera;
void Start () {
camera = Camera.main;
}
void LateUpdate()
{
Quaternion LineUpRotation = Quaternion.LookRotation(camera.transform.forward);
this.transform.rotation = LineUpRotation;
But instead of rotating around itself, it seems to be rotating around a center point. Kind of what you would get when using RotateAroundLocal. If I attach the script to the original model and throw out the parent, it stays in place but it 1. Doesn’t rotate correctly and 2. Looks to be teleporting back and forth.
Anyone know why this script isn’t working? All I’m trying to do is look at the direction the camera is facing.