Hi there! I am currently trying to make a custom third person camera, and this is what I do to transform its position
transform.position = target.position - transform.forward * distanceFromTarget;
It works really well and I am happy with how it turned out, however the "distanceFromTarget" variable doesn't pull as expected if that makes any sense? I only want it to pull the position on the Z axis, nothing more, nothing less, is it possible to do this? I tried to subtract it using a Vector3 but as expected I couldn't because transform.forward is also a Vector, any help is appreciated, thank you!