Returns the shortest distance from the Play Area's bounds to the user's avatar as defined by three points.
public float getDistance(
UnityEngine.Vector3 ,
UnityEngine.Vector3 ,
UnityEngine.Vector3 ,
bool ,
bool
)
Parameters
- cameraPosition
- The position in worldspace of the camera (user's head/eyes).
- leftControllerPosition
- The position in worldspace of the left-hand controller.
- rightControllerPosition
- The position in worldspace of the right-hand controller.
- unsigned
- Determines whether the distance is returned as an unsigned (absolute) value. True by default.
- ignoreHeight
- Determines whether the distance should ignore differences in height between the points and the Play Area's bounds. True by default.
Return Value
The distance expressed in worldspace units (equivalent to meters).