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; }
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 }; }