changed to a global Zposition changed bby mouseZPosition and cameraZPosition