API reference
API reference
Select your platform
No SDKs available
No versions available

OVRPose Struct

OVRPose stores a position and orientation in the Unity coordinate system.
Use OVRPose.ToPosef to convert the pose to OVRPlugin.Posef, which stores a pose in the XR coordinate system, for native XR API calls.

Fields

orientation : Quaternion
The orientation.
Signature
Quaternion orientation
position : Vector3
The position.
Signature
Vector3 position

Properties

identity : OVRPose
[Get]
A pose with no translation or rotation.
Signature
OVRPose identity

Methods

Equals ( obj )
Signature
override bool Equals(System.Object obj)
Parameters
obj: System.Object
Returns
override bool
flipZ ()
Converts the pose from left- to right-handed or vice-versa.
Signature
OVRPose flipZ()
Returns
OVRPose
GetHashCode ()
Signature
override int GetHashCode()
Returns
override int
Inverse ()
Computes the inverse of the given pose.
Signature
OVRPose Inverse()
Returns
OVRPose
Rotate180AlongX ()
Signature
OVRPose Rotate180AlongX()
Returns
OVRPose
ToPosef ()
Signature
OVRPlugin.Posef ToPosef()
Returns
OVRPlugin.Posef
ToPosef_Legacy ()
Signature
OVRPlugin.Posef ToPosef_Legacy()
Returns
OVRPlugin.Posef

Static Methods

operator!= ( x , y )
Signature
static bool operator!=(OVRPose x, OVRPose y)
Parameters
Returns
bool
operator* ( lhs , rhs )
Multiplies two poses.
Signature
static OVRPose operator*(OVRPose lhs, OVRPose rhs)
Parameters
lhs: OVRPose
rhs: OVRPose
Returns
OVRPose
operator== ( x , y )
Signature
static bool operator==(OVRPose x, OVRPose y)
Parameters
Returns
bool