what im trying to do is have an emptyGO be 1 meter to the left of my character transform, so like parenting but offset one meter, and not effecting rotation because i need the emptyGO to be looking at other objects
This is the code in my empty GO
transform.position.x=target.position.x+(Leeway*timz);
transform.position.y=target.position.y+Height;
transform.position.z=target.position.z-(lDist*timz);
timz is either a 1 or a negative 1, so i can change which side its on
Leeway is how much i want it to stick out
target is the object i want it to be one meter to the left of
I thought this would make it come off the targets left side by “leeway” amount, but i think its going by world coordinates because its diffrent dending on which way im facing
how do i get it to be 1 meter to the left of my char, no matter which way hes facing without parenting