/// <summary> /// Initializes a new instance of the BoneOrientationConstraints class. /// </summary> /// <param name="game">The related game object.</param> public BoneOrientationConstraints(Game game) : base(game) { drawKinectSkeletonConstraintCones = true; localJointCoordinateSystemCrosses = new CoordinateCross(this.Game, 2f); this.Game.Components.Add(localJointCoordinateSystemCrosses); }
/// <summary> /// Initializes a new instance of the BoneOrientationConstraints class. /// </summary> /// <param name="game">The related game object.</param> public BoneOrientationConstraints(Game game, Vector3 skeletonTranslationScaleFactor) : base(game) { this.drawKinectSkeletonConstraintCones = true; this.SkeletonTranslationScaleFactor = skeletonTranslationScaleFactor; this.localJointCoordinateSystemCrosses = new CoordinateCross(this.Game, 2f); this.Game.Components.Add(localJointCoordinateSystemCrosses); }
/// <summary> /// Initializes a new instance of the BoneOrientationConstraints class. /// </summary> /// <param name="game">The related game object.</param> public BoneOrientationConstraints(Game game, Vector3 skeletonTranslationScaleFactor) : base(game) { this.drawKinectSkeletonConstraintCones = true; this.SkeletonTranslationScaleFactor = skeletonTranslationScaleFactor; this.localJointCoordinateSystemCrosses = new CoordinateCross(this.Game, 2f); this.Game.Components.Add(this.localJointCoordinateSystemCrosses); }