VR4Medical/ICI/Library/PackageCache/com.unity.xr.interaction.toolkit@42ef3600567b/Runtime/Interaction/Attachment/IAttachPointVelocityTracker.cs
2025-07-29 13:45:50 +03:00

28 lines
1.3 KiB
C#

using UnityEngine.Scripting.APIUpdating;
namespace UnityEngine.XR.Interaction.Toolkit.Attachment
{
/// <summary>
/// Interface defining the contract for trackers that can supply attach point velocity data
/// and for updating that data.
/// This includes both linear velocity and angular velocity.
/// </summary>
/// <seealso cref="AttachPointVelocityTracker"/>
[MovedFrom("UnityEngine.XR.Interaction.Toolkit.Interaction")]
public interface IAttachPointVelocityTracker : IAttachPointVelocityProvider
{
/// <summary>
/// Updates attach point velocity data using only the attachment transform.
/// </summary>
/// <param name="attachTransform">The transform of the attachment point.</param>
void UpdateAttachPointVelocityData(Transform attachTransform);
/// <summary>
/// Updates attach point velocity data using the attachment transform and an XR Origin Transform.
/// </summary>
/// <param name="attachTransform">The transform of the attachment point.</param>
/// <param name="xrOriginTransform">The XR Origin Transform for relative calculations.</param>
void UpdateAttachPointVelocityData(Transform attachTransform, Transform xrOriginTransform);
}
}