Currently I'm using the below code to look at an object, it rotates a capsule towards it: transform.LookAt(Forward1);
I only want it to rotate around its local x axis and to disable the others. I've tried
transform.LookAt(Vector3(Forward1.position.x, transform.position.y, transform.position.z));
But it rotates "90" before the application starts ending up not pointing at the main object at all.
How might I do this?
Thanks in advance!