/// <summary> /// Initializes a new instance of the <see cref="SkeletonJointsFilterClippedLegs"/> class. /// </summary> public SkeletonJointsFilterClippedLegs() { this.lerpLeftKnee = new TimedLerp(); this.lerpLeftAnkle = new TimedLerp(); this.lerpLeftFoot = new TimedLerp(); this.lerpRightKnee = new TimedLerp(); this.lerpRightAnkle = new TimedLerp(); this.lerpRightFoot = new TimedLerp(); this.filteredSkeleton = new Skeleton(); this.filterDoubleExp = new SkeletonJointsPositionDoubleExponentialFilter(); // knee, ankle, foot blend amounts this.allTracked = new Vector3(0.0f, 0.0f, 0.0f); // All joints tracked this.footInferred = new Vector3(0.0f, 0.0f, 1.0f); // foot is inferred this.ankleInferred = new Vector3(0.5f, 1.0f, 1.0f); // ankle is inferred this.kneeInferred = new Vector3(1.0f, 1.0f, 1.0f); // knee is inferred this.Reset(); }
/// <summary> /// Initializes a new instance of the <see cref="SkeletonJointsFilterClippedLegs"/> class. /// </summary> public SkeletonJointsFilterClippedLegs() { this.lerpLeftKnee = new TimedLerp(); this.lerpLeftAnkle = new TimedLerp(); this.lerpLeftFoot = new TimedLerp(); this.lerpRightKnee = new TimedLerp(); this.lerpRightAnkle = new TimedLerp(); this.lerpRightFoot = new TimedLerp(); this.filteredSkeleton = new Skeleton(); this.filterDoubleExp = new SkeletonJointsPositionDoubleExponentialFilter(); // knee, ankle, foot blend amounts this.allTracked = new Vector3(0.0f, 0.0f, 0.0f); // All joints tracked this.footInferred = new Vector3(0.0f, 0.0f, 1.0f); // foot is inferred this.ankleInferred = new Vector3(0.5f, 1.0f, 1.0f); // ankle is inferred this.kneeInferred = new Vector3(1.0f, 1.0f, 1.0f); // knee is inferred this.Reset(); }