Class XRCameraForwardXZAlignment
Transformation that rotates the target's originTransform about the axis aligned with the Origin's up vector and passing through the world position of the Camera, such that the projection of the camera's forward vector onto the Origin's XZ plane matches the projection of the specified vector onto the Origin's XZ plane.
Implements
Inherited Members
Namespace: UnityEngine.XR.Interaction.Toolkit.Locomotion
Assembly: solution.dll
Syntax
public class XRCameraForwardXZAlignment : IXRBodyTransformation
Properties
| Name | Description |
|---|---|
| targetDirection | Vector that the forward vector of the Camera should match when both are projected onto the XZ plane of the originTransform. |
Methods
| Name | Description |
|---|---|
| Apply(XRMovableBody) | Performs the transformation on the given body. |