This website uses cookies to improve our services and deliver relevant ads.
By interacting with this site, you agree to this use. For more information, see our Cookies Policy

Unity 1.25 Reference Guide

OVRBoundary Class Reference

Provides access to the Oculus boundary system.

Public Types

enum
Node {
Node.HandLeft = OVRPlugin.Node.HandLeft, Node.HandRight = OVRPlugin.Node.HandRight, Node.Head = OVRPlugin.Node.Head
}
Specifies a tracked node that can be queried through the boundary system.
enum
BoundaryType {
BoundaryType.OuterBoundary = OVRPlugin.BoundaryType.OuterBoundary, BoundaryType.PlayArea = OVRPlugin.BoundaryType.PlayArea
}
Specifies a boundary type surface.

Private Static Fields

static int
static OVRNativeBuffer
static float []

Public Member Functions

bool
Returns true if the boundary system is currently configured with valid boundary data.
OVRBoundary.BoundaryTestResult
Returns the results of testing a tracked node against the specified boundary type.
OVRBoundary.BoundaryTestResult
TestPoint ( Vector3 point, OVRBoundary.BoundaryType boundaryType )
Returns the results of testing a 3d point against the specified boundary type.
void
Requests that the visual look and feel of the boundary system be changed as specified.
void
Resets the visual look and feel of the boundary system to the initial system settings.
Vector3 []
Returns an array of 3d points (in clockwise order) that define the specified boundary type.
Vector3
Returns a vector that indicates the spatial dimensions of the specified boundary type.
bool
Returns true if the boundary system is currently visible.
void
SetVisible ( bool value )
Requests that the boundary system visibility be set to the specified value.

Member Enumeration Documentation

enum OVRBoundary.Node
Specifies a tracked node that can be queried through the boundary system.
Enumerator
HandLeft
Tracks the left hand node.
HandRight
Tracks the right hand node.
Head
Tracks the head node.
enum OVRBoundary.BoundaryType
Specifies a boundary type surface.
Enumerator
OuterBoundary
Outer boundary that closely matches the user's configured walls.
PlayArea
Smaller convex area inset within the outer boundary.

Private Static Field Documentation

int OVRBoundary.cachedVector3fSize ( )
OVRNativeBuffer OVRBoundary.cachedGeometryNativeBuffer ( )
float [] OVRBoundary.cachedGeometryManagedBuffer ( )

Member Function Documentation

bool OVRBoundary.GetConfigured ( )
Returns true if the boundary system is currently configured with valid boundary data.
OVRBoundary.BoundaryTestResult OVRBoundary.TestNode ( OVRBoundary.Node node, OVRBoundary.BoundaryType boundaryType )
Returns the results of testing a tracked node against the specified boundary type.
All points are returned in local tracking space shared by tracked nodes and accessible through OVRCameraRig's trackingSpace anchor.
OVRBoundary.BoundaryTestResult OVRBoundary.TestPoint ( Vector3 point, OVRBoundary.BoundaryType boundaryType )
Returns the results of testing a 3d point against the specified boundary type.
The test point is expected in local tracking space. All points are returned in local tracking space shared by tracked nodes and accessible through OVRCameraRig's trackingSpace anchor.
void OVRBoundary.SetLookAndFeel ( OVRBoundary.BoundaryLookAndFeel lookAndFeel )
Requests that the visual look and feel of the boundary system be changed as specified.
Can be overridden by the system or user.
void OVRBoundary.ResetLookAndFeel ( )
Resets the visual look and feel of the boundary system to the initial system settings.
Vector3 [] OVRBoundary.GetGeometry ( OVRBoundary.BoundaryType boundaryType )
Returns an array of 3d points (in clockwise order) that define the specified boundary type.
All points are returned in local tracking space shared by tracked nodes and accessible through OVRCameraRig's trackingSpace anchor.
Vector3 OVRBoundary.GetDimensions ( OVRBoundary.BoundaryType boundaryType )
Returns a vector that indicates the spatial dimensions of the specified boundary type.
(x = width, y = height, z = depth)
bool OVRBoundary.GetVisible ( )
Returns true if the boundary system is currently visible.
void OVRBoundary.SetVisible ( bool value )
Requests that the boundary system visibility be set to the specified value.
The actual visibility can be overridden by the system (i.e., proximity trigger) or by the user (boundary system disabled)
The documentation for this class was generated from the following file: OVR/Scripts/OVRBoundary.cs