Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
/******************************************************************************
* Copyright (C) Ultraleap, Inc. 2011-2020. *
* Ultraleap proprietary and confidential. *
* *
* Use subject to the terms of the Leap Motion SDK Agreement available at *
* https://developer.leapmotion.com/sdk_agreement, or another agreement *
* between Ultraleap and you, your company or other organization. *
******************************************************************************/
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace Leap.Unity.Interaction {
/// <summary>
/// The interface for providing tracking data to an InteractionVRController.
///
/// It is recommended that tracking providers update their controllers' tracking
/// data before the Interaction Manager runs every FixedUpdate to minimize latency.
///
/// For a reference implementation, refer to DefaultVRNodeTrackingProvider.
/// </summary>
public interface IXRControllerTrackingProvider {
/// <summary>
/// Gets whether or not this provider is currently tracking the controller for which
/// it provides data.
/// </summary>
bool isTracked { get; }
/// <summary>
/// An event that is fired whenever new tracking data is available for this
/// controller.
///
/// It is recommended that tracking providers fire this event before the Interaction
/// Manager runs every FixedUpdate to minimize latency.
/// </summary>
event Action<Vector3, Quaternion> OnTrackingDataUpdate;
}
}
7368f3069This file is pinned to the selected release. Download the original to open it in your design tool.