Esempio n. 1
0
        /// <inheritdoc />
        public override void UpdateController(InteractionSourceState interactionSourceState)
        {
            if (!Enabled)
            {
                return;
            }

            Profiler.BeginSample("[MRTK] WindowsMixedRealityArticulatedHand.UpdateController");

            base.UpdateController(interactionSourceState);

            UpdateHandData(interactionSourceState);

            for (int i = 0; i < Interactions?.Length; i++)
            {
                switch (Interactions[i].InputType)
                {
                case DeviceInputType.IndexFinger:
                    handDefinition?.UpdateCurrentIndexPose(Interactions[i]);
                    break;
                }
            }

            Profiler.EndSample(); // UpdateController
        }
        /// <inheritdoc />
        public override void UpdateController(InteractionSourceState interactionSourceState)
        {
            if (!Enabled)
            {
                return;
            }

            base.UpdateController(interactionSourceState);

            UpdateHandData(interactionSourceState);

            for (int i = 0; i < Interactions?.Length; i++)
            {
                switch (Interactions[i].InputType)
                {
                case DeviceInputType.IndexFinger:
                    handDefinition?.UpdateCurrentIndexPose(Interactions[i]);
                    break;
                }
            }
        }