navAgent.SetDestination(hit.transform.position);
I’ve got this line in my movement script but my player is moving to the origin of the object, the bottom right corner, rather than the center of the object which is what I want. I would like to adjust the vector movement to be either:
In the center of any object clicked (by changing the origin or center of the model)
or
adjust all my vector movements by -0.5, 0, 0.5 (just adding these on top of whatever the position hit is)
any suggestions? I think modifying the vector by a set amount (the second one) is the easiest and will suit my needs just fine. The whole game is on a grid so I won’t have to worry about objects being different sizes. The second one however would suit me better, less code and I can work from the center point of an object so it won’t matter what the rotation is of the object. Any help at all would be great!