class MAGES::Interaction::UI::TrackedDeviceModel¶
Overview¶
A model for a tracked device. More…
class TrackedDeviceModel { public: // enums enum TrackedDeviceUIInteractionMode; // fields ButtonModel SelectButton; // properties TrackedDeviceUIInteractionMode InteractionMode; float Distance; int PointerId; Vector2 Position; Vector2 PositionDelta; Vector3 TrackedDevicePosition; Quaternion TrackedDeviceRotation; // methods TrackedDeviceModel(int pointerId); void OnEndOfFrame(); void CopyToEventData(TrackedDeviceEventData eventData); void CopyFromEventData(TrackedDeviceEventData eventData); };
Detailed Documentation¶
A model for a tracked device.
Properties¶
float Distance
The max interaction distance from the tracked device.
For Ray interaction mode, this is the max distance of the ray. For Touch interaction mode, this is the max distance (radius) of the touch.
int PointerId
Gets the pointer id.
Vector2 Position
Gets or sets the screen pixel-space coords.
Vector2 PositionDelta
Gets the movement in pixel-space since last frame.
Vector3 TrackedDevicePosition
Gets or sets the tracked device’s position.
Quaternion TrackedDeviceRotation
Gets or sets the tracked device’s rotation.