コード例 #1
0
        protected virtual INTERACTION_HAND_RESULT getHandResults(InteractionHand hand)
        {
            if (!_graspingEnabled)
            {
                INTERACTION_HAND_RESULT result = new INTERACTION_HAND_RESULT();
                result.classification = ManipulatorMode.Contact;
                result.handFlags      = HandResultFlags.ManipulatorMode;
                result.instanceHandle = new INTERACTION_SHAPE_INSTANCE_HANDLE();
                return(result);
            }

            INTERACTION_HAND_RESULT handResult;

            InteractionC.GetHandResult(ref _scene,
                                       (uint)hand.hand.Id,
                                       out handResult);
            return(handResult);
        }