The below code, gives me a vector3 of (1, 6, 1) in local space around my transform. E.G: when I rotate the transform the vector’s position changes as if it was a child.
My question: Is there a better way to do this? I feel like there is a more elegant way than using up 3 lines. It works, obviously, but feels a little clunky.
Vector3 localOffsetVector= (transform.position + transform.right * 1f);
localOffsetVector+= transform.up * 6f;
localOffsetVector+= transform.forward * 1f;
Any thoughts?