Hello, I’m doing a third person shooter and everything goes well except always the same problem of the thorn, I have a target and do not look, what happens in the script? Thank you
using UnityEngine;
using System.Collections;
public class SpineAim : MonoBehaviour {
public Vector3 Offset;
public Transform Target;
public Transform Bone;
void Start ()
{
}
void LateUpdate ()
{
Bone.LookAt(Target.position);
Bone.rotation = Quaternion.Euler(Offset);
}
}