csharp
public struct XrTrackedPoseAn entity that follows a tracked device.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
Adding this is what makes an entity follow the headset or a controller, and removing it stops it — there is no register call, which is the same bargain every other ECS bridge in the engine makes.
Fields and properties (5)
public XrTrackedDevice DeviceWhat it follows.
public bool ApplyPositionWhether to write the tracked position.
public bool ApplyRotationWhether to write the tracked rotation.
public bool IsTrackedWhether the device was actually tracked this frame. Written by the system.
public XrPose PoseThe raw pose, in the reference space, before the rig was applied. Written by the system.
Methods (1)
public static XrTrackedPose Following(XrTrackedDevice device)Following a device with both position and rotation.
Used by (2)
- XrTrackingSystemVixen.Xr
- XrTrackingSystemTestsVixen.Xr.Tests