IDevicePartManipulation.cs 983 B

123456789101112131415161718
  1. using SC.XR.Unity.Module_InputSystem;
  2. using System;
  3. using System.Collections;
  4. using System.Collections.Generic;
  5. using UnityEngine;
  6. /// <summary>
  7. /// HeadDevicePartManipulation 头部操作
  8. /// BT3DofDevicePartManipulation 手柄操作
  9. /// HandDevicePartManipulation 手势操作
  10. /// </summary>
  11. public interface IDevicePartManipulation
  12. {
  13. void OneDevicePartInit(ManipulationHandler manipulationHandler, Dictionary<InputDevicePartType, SCPointEventData> eventDataDic, Transform targetTransform, MoveLogic moveLogic, RotateLogic rotateLogic, ScaleLogic scaleLogic);
  14. Tuple<Vector3, Quaternion, Vector3> OneDevicePartUpdate();
  15. void TwoDevicePartInit(ManipulationHandler manipulationHandler, Dictionary<InputDevicePartType, SCPointEventData> eventDataDic, Transform targetTransform, MoveLogic moveLogic, RotateLogic rotateLogic, ScaleLogic scaleLogic);
  16. Tuple<Vector3, Quaternion, Vector3> TwoDevicePartUpdate(Func<Vector3, Vector3> scaleConstraint);
  17. }