TouchTapInWorld is not returning correct 2D position of the tap

It seems that there is a positive offset to the Y value for TouchTapInWorld tap position and for no apparent reason that’s mentioned in the documents for the event. This is preventing me from accurately detecting if I press a certain gui which I want not to be active.

You might need to add or substract the GuiService:GetGuiInset().Y, depending on the case

2 Likes

Thanks! It worked but is it really intended behaviour for this offset to be included? Or is this a bug after all

Might be missing documentation at worst, but definitely not a bug.

What is the reason for this then?

Simply like the difference between ViewportPointToRay and ScreenPointToRay