Fixed object picking, works correctly when rotating