Immerseum SDK: VR Simulator (version: BETA-0.9)
       [view as Desktop | Tablet | Mobile]
getDistance(Vector3,Boolean,Boolean) Method
The point from which a distance to the Play Area's bounds is calculated.
Determines whether the distance is returned as an unsigned (absolute) value. True by default.
Determines whether the distance should ignore differences in height between the point and the Play Area's bounds. True by default.
Returns the shortest distance from the point to the Play Area's bounds.
Syntax
public float getDistance( 
   UnityEngine.Vector3 point,
   bool unsigned,
   bool ignoreHeight
)

Parameters

point
The point from which a distance to the Play Area's bounds is calculated.
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 point and the Play Area's bounds. True by default.

Return Value

The distance expressed in worldspace units (equivalent to meters).
See Also

Reference

PlayArea Class
PlayArea Members
Overload List

 

 


Copyright (c) 2015 Immerseum Inc. All rights reserved.

Send Feedback