Immerseum SDK: VR Simulator (version: RC-1.0.0)
       [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( 
   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) 2016-2017 Immerseum Inc. All rights reserved.

Send Feedback