For my project I need some buttons on the side of my window. So I changed the size of the window. However, I need to be able to select objects in the scene by clicking on them, which is misbehaving.
I suspect it to have something to do with this function while I suspect it has to do with transformation of the mouse position to select the object:
im using transform controls, before transformation of model using transform controls, i can get exact location where i want to put the axis dragger, but after i transformed when i get the location of onclick , it will give me => onlick location + the location i transformed the model,i try to update the matrix of the scene and model and control;s also,using orthographic camera