private void EvaluateHandData(SimulatedHandData handData, Handedness handedness)
        {
            animation.EvaluateHandState(localTime, handedness, out bool isTracked, out bool isPinching);

            handData.Update(isTracked, isPinching,
                            (MixedRealityPose[] joints) =>
            {
                for (int i = 0; i < jointCount; ++i)
                {
                    joints[i] = animation.EvaluateHandJoint(localTime, handedness, (TrackedHandJoint)i);
                }
            });
        }
Exemple #2
0
        private void EvaluateHandData(SimulatedHandData handData, Handedness handedness)
        {
            animation.EvaluateHandState(localTime, handedness, out bool isTracked, out bool isPinching);

            if (handData.Update(isTracked, isPinching,
                                (MixedRealityPose[] joints) =>
            {
                for (int i = 0; i < ArticulatedHandPose.JointCount; ++i)
                {
                    joints[i] = animation.EvaluateHandJoint(localTime, handedness, (TrackedHandJoint)i);
                }
            }))
            {
                UpdateControllerDevice(ControllerSimulationMode.ArticulatedHand, handedness, handData);
            }
        }