Skip to main content
Markdown formatting
Source Link
liggiorgio
  • 5.5k
  • 6
  • 27
  • 38

Change  :

viewPos.z = Mathf.Clamp(viewPos.z, screenBounds.y + playerDepth, screenBounds.y * -1 - playerDepth); To

to:

viewPos.z = Mathf.Clamp(viewPos.z, screenBounds.z + playerDepth, screenBounds.z * -1 - playerDepth);

Change  viewPos.z = Mathf.Clamp(viewPos.z, screenBounds.y + playerDepth, screenBounds.y * -1 - playerDepth); To viewPos.z = Mathf.Clamp(viewPos.z, screenBounds.z + playerDepth, screenBounds.z * -1 - playerDepth);

Change:

viewPos.z = Mathf.Clamp(viewPos.z, screenBounds.y + playerDepth, screenBounds.y * -1 - playerDepth);

to:

viewPos.z = Mathf.Clamp(viewPos.z, screenBounds.z + playerDepth, screenBounds.z * -1 - playerDepth);

Source Link

Change viewPos.z = Mathf.Clamp(viewPos.z, screenBounds.y + playerDepth, screenBounds.y * -1 - playerDepth); To viewPos.z = Mathf.Clamp(viewPos.z, screenBounds.z + playerDepth, screenBounds.z * -1 - playerDepth);