Well, just quickly looking at your code, I see that you are picking an entity at the lower right corner of the screen...
pick = CameraPick(cam\model,GW,GH)I believe you meant to use:
pick = CameraPick(cam\model,GW/2,GH/2)