Skip to content
  • There are no suggestions because the search field is empty.

How to determine the distance from the user’s face to the camera.

To determine the distance to the user's head from the camera you can use transform.position.z. Take the Z coordinate of the position from the mvp matrix. The distance is in millimeters.