Much like the Zelda games, I do not want the camera to look underwater.
I know the camera will not look through items in the SolidObjectLayers LayerMask. If I add the "Water" layer to SolidObjectLayers, then the camera will not look under the water. The problem is now the character can walk on water.
I want to add a new LayerMask NoCameraViewObjectLayers, which is basically SolidObjectLayers + Water (and any other layer I do not want the camera to go through).
This way, the character can still swim and walk in the water, but the camera will not look underwater.
How can I make the Camera Controller use my new NoCameraViewObjectLayers instead of the SolidObjectLayers when determining where it can look?
I know the camera will not look through items in the SolidObjectLayers LayerMask. If I add the "Water" layer to SolidObjectLayers, then the camera will not look under the water. The problem is now the character can walk on water.
I want to add a new LayerMask NoCameraViewObjectLayers, which is basically SolidObjectLayers + Water (and any other layer I do not want the camera to go through).
This way, the character can still swim and walk in the water, but the camera will not look underwater.
How can I make the Camera Controller use my new NoCameraViewObjectLayers instead of the SolidObjectLayers when determining where it can look?