I can make the object look at another object, but the problem is that x and y has to be static(should not change) and z has to change .
Please don’t ask why it’s the only way my game will work.
thx for help :),I can make the object look at another object, but the problem is that x and y has to be static and z has to change .
Please don’t ask why it’s the only way my game will work.
I just imagnined a solution for you. Lets say your object is called “Eyes”.
Make an empty object (only a transform) called "FakeEyes, at the same icheracy position (i mean children of the same parent), same rotation and same position. Now make this FakeEyes look at the desired objective.
Now, just need to “copy/paste” the rotaitionZ to “Eyes” with