Getting WorldSpace coordinates of eyeScope and cameraDir selection of an optic while it is attached to a weapon doesn't give expected value.
It seems that only in certain condition (e.g. if the weapon is dropped) the coordinates are correct.
In the following videos, the yellow line represents the WorldSpace coordinates of eyeScope and cameraDir selection
In 1.13:
In 1.14: