I have an object that I want to look at but its transform is where the bottom of the object is and I want to look at the middle of the object. I have tried adding a vector3 but it’s not working. help or a suggestion of a better way of doing it would be appreciated.
target is a transform by the way and objectTriggered is a collider.
if(objectTriggered.gameObject.name == "badguy(Clone)") {
target = objectTriggered.gameObject.transform;
target += new Vector3(0.0f, 5.0f ,0.0f);
turret.LookAt(target);
}