コード例 #1
0
ファイル: KinectFace.cs プロジェクト: lavrri/Cuba-Connection
        private static void UpdateFacePoint(TargetData faceBone, KinectDevice.FaceBone faceBoneId, Vector referencePoint)
        {
            Vector facePointPosition = faceBone.startPosition + KinectDevice.GetFacePoint(faceBoneId) - referencePoint;

            faceBone.position            = Filter(faceBone.position, facePointPosition);
            faceBone.confidence.position = 0.7F;
        }
コード例 #2
0
        public ArmSensor(bool isLeft, DeviceView deviceView) : base(deviceView)
        {
            this.isLeft = isLeft;

            shoulder = new TargetData();
            upperArm = new TargetData();
            forearm  = new TargetData();
            hand     = new TargetData();

            thumb        = new Finger();
            indexFinger  = new Finger();
            middleFinger = new Finger();
            ringFinger   = new Finger();
            littleFinger = new Finger();

            fingers = new Finger[] {
                thumb,
                indexFinger,
                middleFinger,
                ringFinger,
                littleFinger
            };
        }