diff --git a/content/How_To/WebXR/WebXR_Camera.md b/content/How_To/WebXR/WebXR_Camera.md index 686e7718c..0304d7333 100644 --- a/content/How_To/WebXR/WebXR_Camera.md +++ b/content/How_To/WebXR/WebXR_Camera.md @@ -48,7 +48,7 @@ The WebXR camera can provide you with the height of the current user, unrelated To query the user's height from the real ground use the `realWorldHeight` of the camera: ```javascript -const userHeight = xrCamera.realWorldHeight(); +const userHeight = xrCamera.realWorldHeight; ``` This function will return the height of the user or 0 if not available. @@ -72,4 +72,4 @@ xrCamera.setTransformationFromNonVRCamera(otherCamera); xrCamera.setTransformationFromNonVRCamera(otherCamera, true); ``` -When executing this function the XR camera will copy the position of the old camera, and its rotation around the Y axis. The rest will be provided by the XR Frame. It is important to know that the height provided by the XR Frame (relative to the reference space) will be added to the position as a compensation for the position reset. Which means that it is possible that the XR camera's Y position will not be exactly equal to the other camera's Y position. \ No newline at end of file +When executing this function the XR camera will copy the position of the old camera, and its rotation around the Y axis. The rest will be provided by the XR Frame. It is important to know that the height provided by the XR Frame (relative to the reference space) will be added to the position as a compensation for the position reset. Which means that it is possible that the XR camera's Y position will not be exactly equal to the other camera's Y position.