Struct TeleportRequest
The Teleport Request that describes the result of the teleportation action. Each Teleportation Interactable must fill out a Teleport Request for each teleport action.
Namespace: UnityEngine.XR.Interaction.Toolkit
Syntax
public struct TeleportRequest
Fields
destinationForwardVector
This vector desecribes the forward normal of the destination. This is used to match the Rig, or Head's heading to the forward direction of the destination
Declaration
public Vector3 destinationForwardVector
Field Value
Type | Description |
---|---|
Vector3 |
destinationPosition
The position in world space of the Teleportation Destination
Declaration
public Vector3 destinationPosition
Field Value
Type | Description |
---|---|
Vector3 |
destinationRotation
The rotation in world space of the Teleportation Destination, This is used primarily for matching world rotations directly
Declaration
public Quaternion destinationRotation
Field Value
Type | Description |
---|---|
Quaternion |
destinationUpVector
This vector describes the upwards facing normal of the destination. This is used to match the Rig's up vector to the destination's up vector.
Declaration
public Vector3 destinationUpVector
Field Value
Type | Description |
---|---|
Vector3 |
matchOrientation
The option of which object's orientation in the rig will be matched with the destination after teleportation.
Declaration
public MatchOrientation matchOrientation
Field Value
Type | Description |
---|---|
MatchOrientation |
requestTime
The Time (in unix epoch) of the request
Declaration
public float requestTime
Field Value
Type | Description |
---|---|
Single |