Isometric Depth and Camera Rotation

I am making a game that has an isometric perspective and I want to have the camera rotate around the player character. Normally, I would have the depth for each object be -y*x, but as the camera rotates around the player character, that would cause problems with the depth of objects. Does anyone know some code or formula that can make it so that an instance's depth is relative to the view angle?

Any help is appreciated.
 
Top