PICO Unity XR SDK
|
Static Public Member Functions | |
static void | SetVisible (bool value) |
Sets the boundary as visible or invisible. Note: The setting defined in this function can be overridden by system settings (e.g., proximity trigger) or user settings (e.g., disabling the boundary system). More... | |
static bool | GetVisible () |
Gets whether the boundary is visible. More... | |
static bool | GetConfigured () |
Checks whether the boundary is configured. Boundary-related functions are available for use only if the boundary is configured. More... | |
static bool | GetEnabled () |
Checks whether the boundary is enabled. More... | |
static PxrBoundaryTriggerInfo | TestNode (BoundaryTrackingNode node, BoundaryType boundaryType) |
Checks whether a tracked node (Left hand, Right hand, Head) will trigger the boundary. More... | |
static PxrBoundaryTriggerInfo | TestPoint (PxrVector3f point, BoundaryType boundaryType) |
Checks whether a tracked point will trigger the boundary. More... | |
static Vector3[] | GetGeometry (BoundaryType boundaryType) |
Gets the collection of boundary points. More... | |
static Vector3 | GetDimensions (BoundaryType boundaryType) |
Gets the size of the play area for the custom boundary. More... | |
static void | EnableSeeThroughManual (bool value) |
Gets the camera image of the device and use it as the environmental background. Before calling this function, make sure you have set the clear flags of the camera to solid color and have set the background color of the camera to 0 for the alpha channel. More... | |
static PxrTrackingState | GetSeeThroughTrackingState () |
Gets the current status of seethrough tracking. More... | |
|
static |
Sets the boundary as visible or invisible. Note: The setting defined in this function can be overridden by system settings (e.g., proximity trigger) or user settings (e.g., disabling the boundary system).
value | Whether to set the boundary as visible or invisble: true -visible; false -invisible. |
|
static |
Gets whether the boundary is visible.
true
-visible; false
-invisible.
|
static |
Checks whether the boundary is configured. Boundary-related functions are available for use only if the boundary is configured.
true
-configured; false
-not configured.
|
static |
Checks whether the boundary is enabled.
true
-enabled; false
-not enabled.
|
static |
Checks whether a tracked node (Left hand, Right hand, Head) will trigger the boundary.
node | The node to track: HandLeft-left controller; HandRight-right controller; Head-HMD. |
boundaryType | The boundary type: OuterBoundary -boundary (custom boundary or in-site fast boundary); PlayArea -the maximum rectangle in the custom boundary (no such a rectangle in the in-site fast boundary). |
IsTriggering
: bool, whether the boundary is triggered; ClosestDistance
: float, the minimum distance between the tracked node and the boundary; ClosestPoint
: vector3, the closest point between the tracked node and the boundary; ClosestPointNormal
: vector3, the normal line of the closest point; valid
: bool, whether the result returned is valid.
|
static |
Checks whether a tracked point will trigger the boundary.
point | The coordinate of the point. |
boundaryType | The boundary type: OuterBoundary -boundary (custom boundary or in-site fast boundary); PlayArea -customize the maximum rectangle in the custom boundary (no such rectangle for in-site fast boundary). |
IsTriggering
: bool, whether the boundary is triggered; ClosestDistance
: float, the minimum distance between the tracked node and the boundary; ClosestPoint
: vector3, the closest point between the tracked node and the boundary; ClosestPointNormal
: vector3, the normal line of the closest point; valid
: bool, whether the result returned is valid.
|
static |
Gets the collection of boundary points.
boundaryType | The boundary type: OuterBoundary -boundary (custom boundary or in-site fast boundary); PlayArea -customize the maximum rectangle in the custom boundary (no such rectangle for in-site fast boundary). |
|
static |
Gets the size of the play area for the custom boundary.
boundaryType | The boundary type: OuterBoundary -boundary (custom boundary or in-site fast boundary); PlayArea -customize the maximum rectangle in the custom boundary (no such rectangle for in-site fast boundary). |
(x, y, z)
: x
-the longer side of the play area; y
-always return 1; z
-the shorter side of the play area. Note: As rectangle is not available for in-site fast boundary, (0, 0, 0)
will be returned.
|
static |
Gets the camera image of the device and use it as the environmental background. Before calling this function, make sure you have set the clear flags of the camera to solid color and have set the background color of the camera to 0 for the alpha channel.
value | Whether to enable SeeThrough: true -enable; false -do not enable. |
|
static |
Gets the current status of seethrough tracking.
PxrTrackingState
. Below are the enumerations:LostNoReason
: no reasonLostCamera
: camera calibration data errorLostHighLight
: environment lighting too brightLostLowLight
: environment lighting too darkLostLowFeatureCount
: few environmental featuresLostReLocation
: relocation in progressLostInitialization
: initialization in progressLostNoCamera
: camera data errorLostNoIMU
: IMU data errorLostIMUJitter
: IMU data jitterLostUnknown
: unknown error