VRTrackedDevice
A class in Root.Township, Alta.XR.
Client: drives a transform from a tracked VR pose (head or hand) after each input update and before rendering. Make one with AddTracking, dispose it to stop.
- Listed in Menus, UI and platforms
- Inherits or implements
IDisposable - Nested types
PositionPostProcessor
Constructors
1 private and internal constructor
| Member | What it is |
|---|---|
private VRTrackedDevice(Transform transform, TrackedPoseDriver.TrackedPose pose, VRTrackedDevice.PositionPostProcessor positionPostProcessor) | Creates a VRTrackedDevice from transform, pose and positionPostProcessor. |
Fields
3 private and internal fields
| Member | What it is |
|---|---|
private TrackedPoseDriver.TrackedPose pose | Which tracked pose is read. |
private VRTrackedDevice.PositionPostProcessor positionPostProcessor | Optional callback that can change the position before it's applied. |
private Transform transform | Transform being driven. |
Methods
| Member | What it is |
|---|---|
static VRTrackedDevice AddTracking(Transform transform, TrackedDevice device, VRTrackedDevice.PositionPostProcessor positionPostProcessor = null) | Starts driving the transform from the given device or pose, with an optional position post-processor. |
static VRTrackedDevice AddTracking(Transform transform, TrackedPoseDriver.TrackedPose pose, VRTrackedDevice.PositionPostProcessor positionPostProcessor = null) | Starts driving the transform from the given device or pose, with an optional position post-processor. |
void Dispose() | Stops updating the transform. |
1 private and internal method
Used in
Members of other types that take, return or hold a VRTrackedDevice: