Why can players peek into the Void
Posted: Sun May 23, 2021 11:51 pm
I've been wondering why players can sometimes see thru ceilings into the Void, and noticed something:
If, inside the editor, you look at player's model, or at player under normal conditions, you can check that the camera and the part of the near clip plane that's within field of view and both nicely inside the character controller capsule: However, when you can peek inside the Void, the camera gets outside of the capsule: That puzzled me for a moment, and my hypothesis is that the culprit is the head dipping mechanism, that shortens the character controller capsule, but neither the smooth follower nor the camera that's attached to it are adjusted for that change.
(I noticed that the head dipping itself depends on camera position, so fixing the issue may be more involved than expected...)
If, inside the editor, you look at player's model, or at player under normal conditions, you can check that the camera and the part of the near clip plane that's within field of view and both nicely inside the character controller capsule: However, when you can peek inside the Void, the camera gets outside of the capsule: That puzzled me for a moment, and my hypothesis is that the culprit is the head dipping mechanism, that shortens the character controller capsule, but neither the smooth follower nor the camera that's attached to it are adjusted for that change.
(I noticed that the head dipping itself depends on camera position, so fixing the issue may be more involved than expected...)